Home All Groups Group Topic Archive Search About

typeof keyword for properties, fields, methods

Author
11 Oct 2006 11:05 AM
Amid
Why don't Microsoft implement some sort of "typeof" for properties, fields,
methods etc?

For example, lets suppose we have "propertyof" keyword, then we can do the
following:

PropertyInfo pi = propertyof(MyClass.MyProperty)

Is there any problems that prevents Microsoft from implementing this?

I would appreciate any thoughts.
Thanks in advance.

AddThis Social Bookmark Button