title: Get name of surrounding class from within nested class
body: <p>I have a nested class within an outer class and from within the inner class I would like to get the name of the outer class via reflection at runtime.</p>
  
  <pre><code>public abstract class OuterClass // will be extended by children
  {
      protected class InnerClass // will also be extended
      {
          public virtual void InnerMethod()
          {
              string nameOfOuterClassChildType = ?;
          }
      }
  }
  </code></pre>
  
  <p>Is this possible in c#?</p>
  
  <p>Edit: I should add, that I want to use reflection and get the name from a child class which extens from OuterClass, which is the reason, I don't know the concrete type at compile time.</p>