Announcement

Collapse
No announcement yet.

Reflection: get private constructor of a Type

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Reflection: get private constructor of a Type

    Hi guys,
    another reflection-related topic. I'd like to get private constructor from a Type.
    Standard .NET approach is to do it by using
    Type.GetConstructor(BindingFlags, ....)
    method overload that has possibility to specify BindingFlags like this:
     BindingFlags.Instance | BindingFlags.NonPublic
    I see that you have method overloads with BindingFlags parameter for
    GetMembers, GetMethods,GetProperties, and also fields, events,... Actually for any type of member "Get" method imaginable except constructor. Is there any specific reason for that?

    Thanks a lot,
    Patrik
Working...
X