Get Current Class Name
<p>In Android, if I need to get name of current class, i can do something like:</p>

<pre><code>private final _TAG = DummyActivity.this.getClass().getSimpleName();
</code></pre>

<p>this would return "DummyActivity" </p>

<p>I want to do same in C# WPF app code-behind.  How do I get the name of current class?  </p>

<pre><code>this.GetType().Name; //this works only on instances of a class 
</code></pre>

<p>Looks like the only option is to hard-code it in C# like this:</p>

<pre><code>private const string _TAG = "DummyWindow";
</code></pre>