GetConstructors method and Private constructors

  • Thread starter Thread starter Doug
  • Start date Start date
D

Doug

I am using reflection to read an assembly and I have a class that has
only a private constructor. However when I use the following method.

Type.GetConstructors(BindFlags.NonPublic);

It does not pick up the private constructor. Instead it reads that
there are no constructors. How do I use this method to determine there
is a private constructor there?
 
Back
Top