title: How to get the current class name at runtime?
body: <p>I'm trying to get a current class name into a string.</p>
  
  <p>For example:</p>
  
  <pre><code>public class Marker : Mark
  {
      string currentclass = ???;
  }
  
  public abstract class MiniMarker : Mark
  {
  }
  </code></pre>
  
  <p>I'd like to get the string from <code>Marker</code> class so I do not have to put it inside each abstract class I make from it.</p>
  
  <p>I want the string to be <code>MiniMarker</code>, or what ever the abstract class is named.</p>
  
  <p>I tried <code>MethodBase.GetCurrentMethod().DeclaringType</code>, but it did not work.</p>