There's another merit in array over the built-in collections (except IEnumerable) and that is the lack of Add() query result should not have "Add" method as it might confuse users
var items = FindAll(); items.Add(new Item() ); (is the new item in the data store now or not?) my repository methods these days are all IEnumerable<>. (same for most collection properties) On Thu, Feb 5, 2009 at 4:28 PM, Ayende Rahien <[email protected]> wrote: > It was designed in 1.1 days, and that was the only type safe thingie > around. > > > On Thu, Feb 5, 2009 at 3:37 PM, Flominator <[email protected]> wrote: > >> >> Hi there, >> >> I wonder which reasons led you to the design decision that "the Active >> Record types" all return an array for FindAll(). Why didn't you use >> something like IList etc.? >> >> I'm just curious, no critique involved :) >> >> Thanks, >> >> Flo >> >> > > > > -- Ken Egozi. http://www.kenegozi.com/blog http://www.delver.com http://www.musicglue.com http://www.castleproject.org http://www.gotfriends.co.il --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en -~----------~----~----~----~------~----~------~--~---
