1

Hi as mentioned above.

Is there any way at all to get access to class with internal constructors and not change it to public at all?

Or is there nothing to do at all and just live with the fact that the class can only be used in that assemby file it exists in?

Khiem-Kim Ho Xuan
  • 1,301
  • 1
  • 22
  • 45

2 Answers2

4

InternalsVisibleTo exposes internally visible types to a specific assembly - I'd imagine that would work for you

NDJ
  • 5,189
  • 1
  • 18
  • 27
1

If you don't mind using reflection and Dynamic extensions

create instance

object obj = Activator.CreateInstance(Type.GetType("DALL.LoadClass, DALL", true));

 dynamic dObject = obj;
 dObject.YourMethod();
Vibeeshan Mahadeva
  • 7,147
  • 8
  • 52
  • 102