C# how to access a method inside a object instance?
I know that in C++ this can be done using -> but I can not see how to do this in C#.
Assume I have a object called myObject and in that object there is a method called myMethod. How would I externally access myMethod?
Thank you in advance.
int testInt = 51;
//Cls B with Cls A object and initialized
One a1 = new One();
Two Temp = new Two();
int var1 = Temp.a1.testInt; //This part here is not working
Console.ReadLine(); //This stops the program so we can see the result.
My god how missing one thing can mess you up so badly. I forgot to make things public. Thank you and Cheerio!