i have the following global variables
private static Queue<List<object>> webdata1Queue = new Queue<List<object>>();
private static Queue<List<object>> webdata2Queue = new Queue<List<object>>();
public static DataTable products1;
public static DataTable products2;
and this function
private void Downloader(Queue<List<object>> webdataQueue,Datatable products)
{
}
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.