title: Expose a field from a Class and add a property?
body: <p>I have a silly problem and I am possibly going about this the wrong way.</p>
  
  <p>I want to add a property to a class to change a field. I am thinking that this is not possible due to the Class level of protection.</p>
  
  <p>SEE: <a href="http://msdn.microsoft.com/en-us/library/microsoft.spot.hardware.pwm(v=vs.102).aspx" rel="nofollow">Microsoft.SPOT.Hardware.PWM</a> I want my code to modify this Class.</p>
  
  <p>I want to change the Boolean:</p>
  
  <pre><code>bool invert;
  </code></pre>
  
  <p>in the initialisation of the Class:</p>
  
  <pre><code>PWM pwm = new PWM(Cpu.PWMChannel.PWM_4, 10, 0.5, true);
  </code></pre>
  
  <p>I want to be able to access the true variable and modify it. At will that is outside of creating a new instance.</p>
  
  <p>I have tried: </p>
  
  <pre><code>public partial class PWM : Microsoft.SPOT.Hardware.PWM
  {
  private static bool invert;
  
  protected static bool Invert
  {
  get { return invert; }
  set { invert = value; }
  }
  }
  </code></pre>
  
  <p>I think this is a failure anyone have any ideas to expose this as a property?</p>