title: Generic Lookup Method
body: <p>I'm wanting to create a generic lookup method to where you specify a type of object and some other identifying parameters and the method returns an object of that type. Is this possible?</p>
  
  <p>I'm thinking something like this.</p>
  
  <pre><code>public T GetObjectOfType(Guid ID, typeof(T Class))
  {
       //lookup this object and return it as type safe
  }
  </code></pre>
  
  <p>I know this just won't work but i hope it explains the concept</p>