title: Fatal Error: Public Main() method is required in a public class
body: <p>Trying my hands on some C# what could be wrong here, i saw it in a text but i keep getting the error </p>
  
  <blockquote>
    <p>Fatal Error: Public Main() method is required in a public class</p>
  </blockquote>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Text;
  
  namespace Beee
      {
          class SampleProgram
          {
              static void Main(string[] args)
              {
                  object[] o = new object[] {"1", 4.0, "Abuja", 'B'};
                  fun(o);
              }
              static void fun(params object[] obj)
              {
                  for(int i=0; i&lt;obj.Length-1; i++)
                  Console.Write(obj[i] +"");
              }
          }
  }
  </code></pre>