I have a general question on enumerable classes based on Chip's FAQ.
My source for studying C# describes the same scenario as Chip addresses. The is a slight difference:
Chip:
- The enumerated class is an additional class named as a plural of the items class (i.e. Song(s)).
Book:
- The enumerated class is a nested class contained within the main class (i.e. AlbumEnumerator class contained within Album. Album will function as a collection of Song objects).
Just out of curiousity, are there really any drawbacks to either method. Is it just personal preference.
Thanks,
Perry
My source for studying C# describes the same scenario as Chip addresses. The is a slight difference:
Chip:
- The enumerated class is an additional class named as a plural of the items class (i.e. Song(s)).
Book:
- The enumerated class is a nested class contained within the main class (i.e. AlbumEnumerator class contained within Album. Album will function as a collection of Song objects).
Just out of curiousity, are there really any drawbacks to either method. Is it just personal preference.
Thanks,
Perry