I have a program where an array gets its data using string.Split(char[] delimiter). (using \';\' as delimiter.)
Some of the values, though, are null. I.e. the string
You could use the Where linq extension method to only return the non-null or empty values.
string someString = "1;2;;3;"; IEnumerable myResults = someString.Split(';').Where(s => !string.IsNullOrEmpty(s));