title: C# method name expected
body: <p>I just trying to pass some values but it's throwing an error all the time. Can some one correct me what I am missing here? </p>
  
  <p>Am getting error here </p>
  
  <pre><code>Thread t_PerthOut = new Thread(new ThreadStart(ReadCentralOutQueue("test"));
  </code></pre>
  
  <p>I want to pass this string value to <code>ReadCentralOutQueue</code>.</p>
  
  <pre><code>class Program
      {
          public void Main(string[] args)
          {
              Thread t_PerthOut = new Thread(new ThreadStart(ReadCentralOutQueue("test"));
              t_PerthOut.Start();
  
          }
  
  
  
          public void ReadCentralOutQueue(string strQueueName)
          {
              System.Messaging.MessageQueue mq;
              System.Messaging.Message mes;
              string m;
              while (true)
              {
                  try
                  {
  
  
  
                          }
                          else
                          {
                              Console.WriteLine("Waiting for " + strQueueName + " Queue.....");
                          }
                      }
                  }
                  catch
                  {
                      m = "Exception Occured.";
                      Console.WriteLine(m);
                  }
                  finally
                  {
                      //Console.ReadLine();
                  }
              }
          }
      }
  </code></pre>