CallByName RRS feed

  • Question

  • The .Net Framework Ver 2 Class Library indicates Interaction.CallByName Method is supported in Windows Mobile but I cannot get the an example to work with VS 2005

    Emulator. Has anyone used CallByName in a VB mobile application?

    Friday, September 4, 2009 8:50 PM


  • Up to now (.NET CF3.5) Interaction.CallByName is just a stub which does nothing. Alternatively you can use MethodInfo.Invoke, as shown in the following code snippet:

    MethodInfo someMethod = someObject.GetType().GetMethod(methodName);
    someMethod.Invoke(someObject, arguments);

    Please mark the post that helps you, and unmark that does not. This benefits our community members.
    • Marked as answer by warrentang Friday, September 11, 2009 2:02 AM
    Friday, September 11, 2009 2:01 AM

All replies