title: C# static "this"
body: <p>Is there a way in a C# static method to refer to the Type the method is defined in?</p>
  
  <p>In an instance method you can determine the type by:</p>
  
  <pre><code>public void Foo()
  {
      Type type = this.GetType();
  }
  </code></pre>
  
  <p>how would it look like in a static method?</p>
  
  <pre><code>public static void Bar()
  {
      Type type = ....?
  }
  </code></pre>
  
  <p><strong>Update: Sorry, clarification needed:</strong> I know the <code>typeof(...)</code> feature. I'm looking for a keyword or code that gives me the Type without explicitly referencing the class name.</p>
  
  <p><strong>Update:</strong> Besides Developer Art's answer, which does exactly what I was looking for, is there a simpler way?</p>