This project has moved and is read-only. For the latest updates, please go here.

Public member 'CallMethod' on type 'Person' not found.

Jun 30, 2012 at 7:01 PM
Edited Jun 30, 2012 at 7:02 PM

I'm trying to run a simple example on VB, but I got this error at runtime.  c# version is working

Public member 'CallMethod' on type 'Person' not found.

 Dim person = GetType(Person).CreateInstance()
 person.CallMethod("Weigth")
Jul 1, 2012 at 12:20 PM

solution here

http://stackoverflow.com/questions/2402660/why-does-this-extension-method-throw-a-nullreferenceexception-in-vb-net

Jul 1, 2012 at 2:27 PM

Interesting, but doesn't sound like something that we can do anything about inside Fasterflect.

+1 for linking to the "solution" though.