|
-
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?
Jon Stonecash
Rainier Technology, Inc.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks