c# how to access the class which is calling a function code example
Example 1: call class c#
//Declaring an object of type MyClass.
MyClass mc = new MyClass();
//Declaring another object of the same type, assigning it the value of the first object.
MyClass mc2 = mc;
Example 2: how to call a method from a class C#
classname.methodname();