Tech Off Post

Single Post Permalink

View Thread: Static initializers and reflection
  • User profile image
    BitFlipper

    ,Dexter wrote

    You can use Type.GetConstructors(BindingFlags.Static | BindingFlags.NonPublic) and select the one where IsStatic is true.

    Ah excellent! I thought I tried that already, but I just tried it again and got it working.