title: Type-safely pass a class name to a method
body: <p>I need the class name in a method say for example X. Meanwhile, I don't want to loose type-safety and I'm not gonna allow other developers to pass a string (class name) to the method. </p>
  
  <p>Something like this:</p>
  
  <pre><code>void X( ??? class) // --&gt; don't know how
  {
   var className = get the name of class // --&gt; which I don't know how
   Console.WriteLine(className);
  }
  
  X(tblEmployee); //--&gt; usage of X, where tblEmployee is a POCO class
  </code></pre>