String.Split() - ?
. . , , , . , , , X X? , .NET , .
?
, . . - , :
public static string[] Split(string s, params char[] delimeter)
{
List<string> parts = new List<string>();
int lastPartIndex = 0;
for (int i = 0; i < s.Length; i++)
{
if (delimeter.Select(x => char.ToUpperInvariant(x)).Contains(char.ToUpperInvariant(s[i])))
{
parts.Add(s.Substring(lastPartIndex, i - lastPartIndex));
lastPartIndex = i + 1;
}
}
if (lastPartIndex < s.Length)
{
parts.Add(s.Substring(lastPartIndex, s.Length - lastPartIndex));
}
return parts.ToArray();
}