title: Generics types in C#
body: <p>I have three similar methods like this for types Loan, Client and Book. I´m a programming student  and I would to know if is possible to pass in the parameter, a generic type which match with this 3 classes, I mean pass between brackets a different type like <code>&lt;T&gt;</code>, having only one method for the three classes. I tried <code>&lt;object&gt;</code> but it doesn´t work.</p>
  
  <pre><code>public void LoadStoreLoans(ObservableCollection&lt;Loan&gt; loansCollection)
  {
       IList&lt;Loan&gt; loans = db.Query&lt;Loan&gt;(); //db4o 
       loansCollection = loans != null ? new ObservableCollection&lt;Loan&gt;(loans) : new ObservableCollection&lt;Loan&gt;();
  }
  </code></pre>
  
  <p>Thnks.</p>