Cannot Access Protected Function in Derived Class in C#?
<p>How to use protected function of base class in derived class?</p>

<pre><code>public class A
{
  protected void Test()
  {
      // some code....
  }
}

public class B : A
{
  public void Test2()
  {
    A obj = new A();
    obj.Test(); // error thrown;
  }
}
</code></pre>

<p>When i tried to use the Test function of base class. It is throwing error..</p>
