James Watt

Hi,

I'm developing a data processing application and I want to store the name of certain C# methods I create in a database and then call those methods when the data rows are processed.

I have done some searching but haven't found anything yet. Can anyone help or point me in the write direction

Cheers

James Watt


Re: .NET Base Class Library Calling a method from a name contained in a string?

ShellShock

I will point you to the System.Reflection namespace. All you desire is within.



Re: .NET Base Class Library Calling a method from a name contained in a string?

Inbar Gazit - MSFT

System.Reflection.MethodBase mb = typeof(<variable>).GetMethod("<method name>");

mb.Invoke();

So by chaning <variable> to the type you are using and <method name> to the method you want to call - you get what you want.

Good Luck!