Closed OmarElabd closed 9 years ago
I may be able to examine the class to see if it has a public property or field. Note: even though property maybe public, check to make sure there isn't a private set;
Resolved by getting Type of object, and reflecting public fields and properties, maintain a dictionary of types, list of properties check each property. It would improve performance to check prepended underscores but that does not guarantee it is a private field as that is only a convention.
Seems like there is no way to detect whether the expression is private or not. I could introduce an option to exclude expression preceded with an underscore from the generated code.