title: How to access a protected method in C#
body: <p>I would like to know how to access a protected method. </p>
  
  <p>I have a WebBrowser Control (Awesomium) which has many protected methods.</p>
  
  <p>I created a Tabbed Browser with this WebControl in a WinForm. </p>
  
  <p>Now I can't use ie <code>InjectKeyboard</code>-method cause it's protected. </p>
  
  <p>This is the method:</p>
  
  <pre><code>//     Injects a keyboard event.
  //
  // Parameter:
  //   keyEvent:
  //     The keyboard event to inject. You'll need to initialize the members of the
  //     passed Awesomium.Core.WebKeyboardEvent, yourself.
  //
  // Note:
  //      Awesomium.Windows.Forms.WebControl handles this internally. Inheritors do
  //     not need to call this method unless they implement custom logic.  This method
  //     bypasses settings of the Awesomium.Windows.Forms.WebControl.InputController.
  //      For performance reasons, no validity check is performed when calling protected
  //     members.  Inheritors should perform any such checks (see Awesomium.Windows.Forms.WebControl.IsLive),
  //     before calling these members.
  
  protected void InjectKeyboardEvent(WebKeyboardEvent keyEvent);
  </code></pre>
  
  <p>While in the API Link is <a href="http://www.awesomium.com/docs/1_6_3/sharp_api/html/d8fef50b-0f4f-ee6f-fc8b-8480b611d667.htm" rel="nofollow">HERE</a> </p>
  
  <p>Why did they protect this method and how can I use it?</p>