Question : C# How can I dynamically create an object that is not referenced in the project.

How can I dynamically create an object thast is not referenced in the project.

Basically I need to create a procedure to do this  with the parameters

1) of the name of DLL
2) Name of the subroutine i want to call

I was thinking of trying something along the lines of...


type t = (not sure how to do this)      
Object o = Activator.CreateInstance(t);

Answer : C# How can I dynamically create an object that is not referenced in the project.

try:

openFileDialog1.Filter = "Excel files (*.xlsx, *.xlsm)|*.xlsx;*.xlsm";
Random Solutions  
 
programming4us programming4us