Ooh, that's horrible. The only way you can call that from C# is via reflection; you'd probably need to use GetMethods()
and find the one you want from the array (the GetMethod()
overloads may not love that).
Once you have the MethodInfo
, you can either just use Invoke
, or you can use Delegate.CreateDelegate
to get a typed delegate you can re-use. It depends how often you will be calling it, as to which of those is preferable.