All pastes #226948 Raw Edit

Mine

public text v1 · immutable
#226948 ·published 2006-10-28 23:02 UTC
rendered paste body
void Execute()
{
	Type   TLibrary = Type.GetType("Lib.Name");
	Object TObject  = Activator.CreateInstance(TLibrary);
	Type[] TParams  = new Type[1];
	TParams[0] = Type.GetType("System.String");
	MethodInfo TFunction = TLibrary.GetMethod("MyFunction", TParams);
	Object[] Params = new Object[1];
	Params[0] = "argument";
	Object RetVal = TFunction.Invoke(TObject, Parmas);
	Console.WriteLine("Result of MyFunction: ", RetVal);
}