Tuesday, August 7, 2012

string, IEnumerable, only digits

string x = "9k6hg4r989";
string y = new string(x.TakeWhile(char.IsDigit).ToArray());

No comments:

Post a Comment