title: How to define a class property with type T
body: <p>How can I have a property which can accept object of any type (of class)... something like this?</p>
  
  <pre><code>public class HttpConnectorRequest
  {
      public int Id { get; set; }
      public T RequestObject { get; set; } where T: class
      public string ResponseData { get; set; }
      public Exception Exception { get; set; }
  }
  </code></pre>
  
  <p>I am trying to acheive an alternative for something like this:</p>
  
  <pre><code>public class HttpConnectorRequest
  {
      public int Id { get; set; }
      public ClassA ClassARequestObject { get; set; }
      public ClassB ClassBRequestObject { get; set; }
      public ClassC ClassCRequestObject { get; set; }
      public string ResponseData { get; set; }
      public Exception Exception { get; set; }
  }
  </code></pre>