Doesn't look like the Reflector class supports that.  Funny I hadn't noticed
it before.  You'll have to do it the old fashioned way for now.

It would be really useful to have a static variant of Reflector that did not
require an object!  Actually, now that I look at it, I think it's time to
replace Reflector with something a bit more powerful...

Jeff.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of nimad
Sent: Tuesday, December 29, 2009 10:36 AM
To: MbUnit.User
Subject: MbUnit how to invoke a private static method?

Hi,

Is there a way to invoke a private static method?

Reflector.InvokeMethod requires an instance as the first parameter.

Thanks!

Nima

--

You received this message because you are subscribed to the Google Groups
"MbUnit.User" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/mbunituser?hl=en.


--

You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mbunituser?hl=en.


Reply via email to