John,
GetProperty and GetMethod do not require an instance as a first
parameter, they require a Type instance, and then you can get properties and
methods, regardless of whether or not they are static.
Invoking them is a different story, and in this case, if the
method/property is static, then the method/property info will know this, and
you can pass null as the parameter for the instance.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"John Wood" <j@ro.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
The GetProperty ./ GetMethod etc. methods all require an instance as a
first parameter.
What if the property is static? I can't pass in a class, obviously...
John