title: Acessing Non-Public base property in C#
body: <p>I'm currently working with a third party library and try to implement it into a C# Winforms application. I'm currently stuck because I'm not able to access all the properties I need of an object this library creates. But when I'm debugging in Visual Studio and explore the object, I can clearly see the property I'd have to access. It's the "CreateThreadId" property you can see on this picture:</p>
  
  <p><img src="https://i.stack.imgur.com/qMoXF.png" alt="enter image description here"></p>
  
  <p>I tried some things out using reflection:</p>
  
  <pre><code>sender.GetType().GetProperties(BindingFlags.NonPublic | BindingFlags.Instance).Single(pi =&gt; pi.Name == "CreatedThreadId");
  </code></pre>
  
  <p>But to be honest I'm a beginner using reflection and I cnt find a way to get rid of that.
  Is there a way to access this property? How to do that?</p>