#No I tried creating the property in my
1 messages · Page 1 of 1 (latest)
Going to read up a bit more on properties, I am feeling like I am missing something. Sounds like it should work.
can you provide a snippet? Properties are just methods disguised as fields.
int MyInt { get; set; }
is the same as:
int _myInt;
int GetMyInt() {
return _myInt;
}
void SetMyInt(int value) {
_myInt = value;
}
C#/VB/F# compiler playground.
That's what it looks like when you decompile it