We have a Car class.
We have a Garage class containing a lot of Cars.
To traverse Garage cars we could do:
1)Make Garage implement IEnumerable.
2)Provide Garage with property that will give us back collection of Cars.
What are differences + advantages/disadvantages of the 2 methods.
Thanks for your time.
This post has been edited by darek9576: 23 October 2011 - 01:28 PM