If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: [RESOLVED] Nested Get Methods

You can have a property of Civilian that returns a bool[]

E.g.

Code:

public bool[] MyBooleanArray
{
get
{
return new bool[10];
}
}

But you can't have bools with sub properties as you like

But I think from what I can gather, you want to change your design a little.
I think you're saying that each Civilian can have a number of licences and that each licence is either a Driving one or Aviation one. You may be better using an enumerator for the Licence:

Re: [RESOLVED] Nested Get Methods

Could you send me an example of your Size that behaves this way. It may be implementing an interface that I'm not familiary with. What you describe sounds like implicit conversion. Update the Licence class to the following:

Re: [RESOLVED] Nested Get Methods

okay whilst writing out a sample to give you i realised that i was being silly! lol

i ment to say something.Size and something.Size.Height were something was like a textbox.
obv something.Size is just an instance of the class Size right?! and something.Size.Height is a property within the class Size!

and that is what you gave me, so yer sorry for the confusion! =P

i've never used implicit conversions like what you showed me above so i am not gona use it esp say if it can cause bugs!!!

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.