static void Main(string[] args) { var obj = new MyClass(); obj.MyMethod(); }
private static void Main() { var myClass = new MyClass(); myClass.MyMethod(); }