I need an array with custom methods.
MyObject[] myObject = {myA, myB, myC};
myObject.myMethod(); // do my stuff
1. Is that possible?
2. How would myMethod
be able to internally access myA
, myB
, and myC
?
-
PS: Sorry to deceive all the down voting c# wizards, here. But I'm just starting with the language and I don't know about "Enumerations" of the referred question . So I did made a simpler straighter question with the hope of helping the ones of my kind.