Hello all there,
I am new to C# programming. I am creating a nested class structure in which i need to call a method of outer class from an inner class. Hew, see the code below to get a better understanding of my problem.
//ignore the underscores(_), they are just for indentation of the code.
//How to call the Method1() of class A and class B here.
So, the problem is both the outer classes have the same method named Method1(). Is it possible to specifically call the Method1() of one of the outer classes (A or
. I want to call one of the method from the inner class C. How could I call the Method1() of class A, and how that of Class B.
Also tell me if I give only the function call Method1() without any class object name, or so, which one of the Method1() will get called.
Thanx in advance
0 · ·