On Jun 27, 1:52*am, Arne Vajhøj <a...@vajhoej.dk> wrote:
<snip>
Just wearing my version number pedantry hat:
> C# 3.5:
It's C# 3, not 3.5. I've got an article about the version numbers at
http://csharpindepth.com/Articles/Ch.../Versions.aspx
(I know I've been doing a lot of this recently. I can understand if
it's slightly annoying, but I think it's for the best in the long run.
If other groupies would rather I stopped, please let me know.)
> * * * * *public static List<string> SpecialSplit30(string s)
> * * * * *{
> * * * * * * *return new List<string>(from part in s.Split(',') select
> part.Trim());
> * * * * *}
I've just posted my version as a reply to Pete's post - I tend not to
bother with a query expression if I'm just using one operator (just
select, or a where followed by a no-op select). And ToList is
goodness
Jon