नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'property_accessor': the accessor methods for a property must either be all static or all non-static
Remarks
When defining a non-trivial property, the accessor functions can be either static or instance, but not both.
See property for more information.
Example
The following example generates C3804.
// C3804.cpp
// compile with: /c /clr
ref struct A {
property int i {
static int get() {}
void set(int i) {}
} // C3804 error
// OK
property int j {
int get() { return 0; }
void set(int i) {}
}
property int k {
static int get() { return 0; }
static void set(int i) {}
}
};