temp.Split("||".ToCharArray()); is equivalent to temp.Split('|');
You can probably get the result you want by using the StringSplitOptions enum (or it might be SplitStringOptions) anyway there is a choice for ignoring null values.
Sorry for the inexact syntax but without intellisense I'm lost.
Marked as answer by mbanavige on May 06, 2012 11:18 PM
RichardY
Star
8376 Points
1573 Posts
Re: string split Delimiter doubt
May 05, 2012 01:06 PM|LINK
temp.Split("||".ToCharArray()); is equivalent to temp.Split('|');
You can probably get the result you want by using the StringSplitOptions enum (or it might be SplitStringOptions) anyway there is a choice for ignoring null values.
Sorry for the inexact syntax but without intellisense I'm lost.