// Use the Extension Method
Public static string [] SplitExt (this string sourceString, string splitString)
{
List <string> arrayList = new List <string> ();
String s = string. Empty;
While (sourceString. IndexOf (splitString)>-1)
{
S = sourceString. Substring (0, sourceString. IndexOf (splitString ));
SourceString = sourceString. Substring (sourceString. IndexOf (splitString) + splitString. Length );
ArrayList. Add (s );
}
ArrayList. Add (sourceString );
Return arrayList. ToArray ();
}
// Use the common method
Public static string [] StringSplitExt (string sourceString, string splitString)
{
List <string> arrayList = new List <string> ();
String s = string. Empty;
While (sourceString. IndexOf (splitString)>-1)
{
S = sourceString. Substring (0, sourceString. IndexOf (splitString ));
SourceString = sourceString. Substring (sourceString. IndexOf (splitString) + splitString. Length );
ArrayList. Add (s );
}
ArrayList. Add (sourceString );
Return arrayList. ToArray ();
}