title: passing static variables to a function
body: <p>i have the following global variables</p>
  
  <pre><code>private static Queue&lt;List&lt;object&gt;&gt; webdata1Queue = new Queue&lt;List&lt;object&gt;&gt;();
  private static Queue&lt;List&lt;object&gt;&gt; webdata2Queue = new Queue&lt;List&lt;object&gt;&gt;();
  public static DataTable products1;
  public static DataTable products2;
  </code></pre>
  
  <p>and this function</p>
  
  <pre><code>private void Downloader(Queue&lt;List&lt;object&gt;&gt; webdataQueue,Datatable products)
          {
          }
  </code></pre>
  
  <p>is this the right way to pass static variables to a function? i need to pass the declared variables because i will be using the same function with 2 different threads.</p>