how to call a method from a class C# code example Example: how to call a method from a class C# classname.methodname();