I created a library that simplifies the creation and invocation of dynamic objects using .NET. You can download the library and code in google code: Late Binding Helper In the project, you will find the Wiki page using , or you can also check this article in CodeProject
Using my library, your example will look like this:
IOperationInvoker myClass = BindingFactory.CreateObjectBinding("MyClassAssembly", "MyClass"); myClass.Method("MyMethod").Invoke();
Or even shorter:
BindingFactory.CreateObjectBinding("MyClassAssembly", "MyClass") .Method("MyMethod") .Invoke();
It uses a free interface and really simplifies such operations. Hope you could find this helpful.
source share