title: Call a non-static class with a console application
body: <p>I'm trying to call a method from another class with a console application. The class I try to call isn't static.</p>
  
  <pre><code>class Program
  {
      static void Main(string[] args)
      {
          Program p = new Program();
          var myString = p.NonStaticMethod();
      }
  
      public string NonStaticMethod()
      {
          return MyNewClass.MyStringMethod(); //Cannot call non static method
      }
  }
  
  class MyNewClass
  {
      public string MyStringMethod()
      {
          return "method called";
      }
  }
  </code></pre>
  
  <p>I get the error:</p>
  
  <blockquote>
    <p>Cannot access non-static method "MyStringMethod" in a static context.</p>
  </blockquote>
  
  <p>This works if I move the MyStringMethod to the class program.
  How could I succeed in doing this?
  I cannot make the class static nor the method.</p>