This question is locked. New answers and comments are not allowed.
Hi
I'm trying to implement List<> in my project, but OA says I must use IList instead. I tested using a Person and Address class. The Person class has an IList of Address objects.
I then came across this situation:
Does using the last version come with any problems down the road?
Also, is it a good idea to include a Person object in class Address so that I can go from Address.Person.whatever in addition to Person.Addresses.whatever?
Re
Dennis
I'm trying to implement List<> in my project, but OA says I must use IList instead. I tested using a Person and Address class. The Person class has an IList of Address objects.
I then came across this situation:
//Doesn't work |
private IList<Address> _addresses = new IList<Address>(); |
// Does work |
private IList<Address> _addresses = new List<Address>(); |
Also, is it a good idea to include a Person object in class Address so that I can go from Address.Person.whatever in addition to Person.Addresses.whatever?
Re
Dennis