I have a 3rd party assembly I need to use. However I can't install it on my development machine for a variety of reasons.
What I was going to do was reference it but, for development, use activator.createinstance to create the types from a simulator I was planning to produce. They would obviously have the same signature.
Now I'm a bit stumped. A number of the methods are static and I haven't got a clue how to emulate these.
I would have a reference to the 3rd party DLL and my simulator and was planning to write something like:-
dim typeToUse as 3rdParty.Type
typeToUse = activator.createInstance"myEmulator.Type"
Problem is that a number of the methods I need to access are static.
e.g.
result = 3rdParty.Type.DoSomething
Any suggestions ??
Basically I just want to create an assembly with the same objects, methods (both static and instance) and load it dynamically to get access to the types.
What I was going to do was reference it but, for development, use activator.createinstance to create the types from a simulator I was planning to produce. They would obviously have the same signature.
Now I'm a bit stumped. A number of the methods are static and I haven't got a clue how to emulate these.
I would have a reference to the 3rd party DLL and my simulator and was planning to write something like:-
dim typeToUse as 3rdParty.Type
typeToUse = activator.createInstance"myEmulator.Type"
Problem is that a number of the methods I need to access are static.
e.g.
result = 3rdParty.Type.DoSomething
Any suggestions ??
Basically I just want to create an assembly with the same objects, methods (both static and instance) and load it dynamically to get access to the types.
Comment