ShareThis

Thursday, July 19, 2012

[C#] Split string into array and trim (one line!)

This is a badass solution to a common problem:


emails.Split(',').Select(email => email.Trim()).ToArray()

0 comments:

Post a Comment