Reflection: Type Methods and Properties
If I define a type and then declare an instance of that type in my code,
Intellisence will show me the methods, properties, fields, etc. defined by by
type. If I get the Type instance for my type and use GetProperties, I get the
properties that I expect. If, on the other hand, I use GetMethods, I get a
numer of entries that I do not expect. Specifically, I get the set_ and Get_
methods for the properties. Clearly Intellisence can figure out that these
extra methods are not to be displayed. What I cannot figure out is how to
determine that the set_MyProperty method is actually a part of a property.
Can anyone out there point me in the right direction?
Rainier Technology, Inc.
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center