hi i was wondering if (and how) you can create nested methods in c#.
c# seems to do it with size like below.
something.Size returns a value but also something.Size.X returns a value.
how can i do something like this myself?
i would like to do sumit like:
Code:
Civilian civ = new Civilian();
bool[] licenses = civ.Licenses; // returns bool array of all the licenses
bool drivingLicense = civ.Licenses.Driving; // returns true/false if they have a driving license
bool aviationLicense = civ.Licenses.Aviation; // returns true/false if they have an aviation license
Thanks Ollie