I made a class which only had 20 getsetters and nothing else beyond a constructor. Then I used this means to determine the methods by way of reflection. type.GetMethods() gave me 44 methods! Four of them were:
- ToString
- Equals
- GetHashCode
- GetType
 
Remaining were the forty methods for twenty getsetters. Each getsetter had two methods upon reflection. A getsetter for Foo would be reflected like so:
- get_Foo
- set_Foo
 
The manner in which getsetters reflect is another thing I picked up from C# 4.0 in a Nutshell!
No comments:
Post a Comment