title: How to pass parameters to Main() C# in visual studio for mac
body: <p>I've looked at the different resources for other editions of visual studio but it's not clear to me how to call Main with an arg here</p>
  
  <pre><code>using System;
  
  namespace helloWorld
  {
      class MainClass
      {
          public static void Main(string[] args)
          {
              if (args.Length &gt; 0)
              {
                  Console.WriteLine("Hello " + args[0]);
              }
              else
              { 
                  Console.WriteLine("Hello World!");
              }
          }
      }
  }
  </code></pre>