title: Auto-Implemented Property Classes as Parameter
body: <p>I'd like to pass a property class reference into a method.
  For example:</p>
  
  <pre><code>Class SQLiteTables
  {
      public class tblPersonnel
      {
          public int PsnID { get; set; }
          public string PsnFirstName { get; set; }
          public string PsnMiddleName { get; set; }
          public string PsnLastName { get; set; }
      }
      public class tblSchedules
      {
          public int SchID { get; set; }
          public string SchDescription { get; set; }
          public DateTime SchStartDtm { get; set; }
          public DateTime SchEndDtm { get; set; }
  
      ...
  
      public class TableName
      {
          public int Field1 { get; set; }
          public string Field2 { get; set; }
          public string Field3 { get; set; }
  
          ...
  
          public string FieldN { get; set; }
      }
  }
  </code></pre>
  
  <p>I would want to create a method something like this:</p>
  
  <pre><code>public void ThisMethod(PropertyClass propertyclassname)
  {
          List&lt;propertyclassname&gt; TempList = dbConn.Table&lt;propertyclassname&gt;().ToList&lt;propertyclassname&gt;();
  }
  </code></pre>
  
  <p>And use it like this:</p>
  
  <pre><code>ThisMethod(tblPersonnel);
  ThisMethod(tblSchedules);
  </code></pre>
  
  <p>I'm trying to avoid making multiple methods for each property. I want it to be one reusable method but I can't seem to figure out how. Many thanks in advance!</p>