A
A
Avery0072014-04-10 13:10:48
C++ / C#
Avery007, 2014-04-10 13:10:48

How to connect a dll to a project, call a static class function if the name of the library and class is unknown?

There is a C# library, its name is unknown, it must be passed to the method, it has a class (it is inherited from the interface), the class (the class name is also unknown) has a static function (which is in the interface, its name is known), it needs to be called with parameters.
Only the namespace and the name of the interface are known, another library is connected to this library via links, the name of which is known. How can I do that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aush, 2014-04-10
@Avery007

What exactly is not working for you?

var assembly = Assembly.LoadFrom(arg1);

foreach (Type tp in assembly.GetTypes())
{
...

Well and further in the same spirit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question