Main Site Documentation

String split function


Hi guys,

Is there a String.split function avaliable in .netmf? I’m struggling to find one.

What would you guys do to split a string of comma seperated values into a string array?

(Appart from a while loop adding characters to the string going through it character by character - surely there must be a simpler way?)


Yes, there is.



Which assembly is that in? I really can’t find it. System.String doesn’t seem to contain split, am I missing a reference?

            string MyString = "abc,def";
            string[] MyArray = MyString.Split(',');


Thanks :slight_smile:


It is in mscorlib.dll