M
Mike
I have a DLL which I am using Assembly.Load and CreateInstance to instantiate.
Dim path As String = "myDLL"
Dim className As String = path + ".SomeClass"
Dim foo As IFoo
foo = CType(System.Reflection.Assembly.Load(path).CreateInstance(className),
IFoo)
This works, and creates an instance of myDLL.className.
However I want to be able to call an overloaded constructor, e.g.
dim foo as new myDLL.SomeClass("Bar")
How can I do this using createinstance?
Dim path As String = "myDLL"
Dim className As String = path + ".SomeClass"
Dim foo As IFoo
foo = CType(System.Reflection.Assembly.Load(path).CreateInstance(className),
IFoo)
This works, and creates an instance of myDLL.className.
However I want to be able to call an overloaded constructor, e.g.
dim foo as new myDLL.SomeClass("Bar")
How can I do this using createinstance?