title: Retrieve class name from within static method in typescript
body: <p>I am trying to retrieve the class name from within a static method. It works from an ordinary method but not from within a static method</p>
  
  <pre><code> class MyNode{
      constructor(){
          var classname=this.constructor.toString().split ('(' || /s+/)[0].split (' ' || /s+/)[1];
          console.log(classname);
      }
      static a_static_method(){
          var classname=this.constructor.toString().split ('(' || /s+/)[0].split (' ' || /s+/)[1];
          console.log(classname);
      }
  }
  var obj=new MyNode(); // THIS WORKS, prints "MyNode" 
  MyNode.a_static_method(); // THIS DOESN'T, prints "Function"
  </code></pre>
  
  <p>I forgot to tell: it should work for the derived classes of MyNode.</p>