title: How to check type parameter?
body: <p>I have class</p>
  
  <pre><code>class ManagerCar : IBlalba
  {
     public void Render(IViewTemplate template)
     {
     }
  }
  </code></pre>
  
  <p>and I know what the parameter template is <code>CarViewTemplate</code> I want check type and throw exception if <code>IViewTemplate != CarViewTemplate</code></p>
  
  <p>I can do check <code>if(template is typeof(CarViewTemplate))</code>.</p>
  
  <p>But I have many <code>Managers</code>. </p>
  
  <p>I want check this type on compilation and with help attribute like <code>[IsType(typeof(CarViewTemplate))]</code></p>
  
  <p>Is it possible ?</p>
  
  <p><strong>UPDATE</strong>
  I have interface with <code>Render(IViewTemplate template)</code></p>