C
CSharper
I was reading Eric Lippert's blog (old one, catching up the missing
ones)
http://blogs.msdn.com/ericlippert/archive/2008/09/22/arrays-considered-somewhat-harmful.aspx
In this blog he was stating the you have to be careful on how to use
Arrays. In the essense the is stating, If you are return an immutable
values then do not use Arrays, Instead use IList, IEnumerable etc., If
you would return Array, it has to create a new array collection and if
they are IList or IEnumerable, it returns the link. Is this a correct
statement?
Thanks,
ones)
http://blogs.msdn.com/ericlippert/archive/2008/09/22/arrays-considered-somewhat-harmful.aspx
In this blog he was stating the you have to be careful on how to use
Arrays. In the essense the is stating, If you are return an immutable
values then do not use Arrays, Instead use IList, IEnumerable etc., If
you would return Array, it has to create a new array collection and if
they are IList or IEnumerable, it returns the link. Is this a correct
statement?
Thanks,