How to call some method via Reflection without any parameters and any return values?
Here is MSDN sample
// Define a class with a generic method.
public class Example
{
public static void Generic<T>()
{
Console.WriteLine("\r\nHere it is: {0}", "DONE");
}
}
What should be within typeof(???) then?
MethodInfo miConstructed = mi.MakeGenericMethod(typeof(???));
Thank you!!!
If you were invoking that through C#, you would need to supply a type, for example:
that requirement does not change; simply, that line would become:
For a complete, working illustration: