var chars = string.Join(string.Empty, Enumerable.Range(0, char.MaxValue + 1).Select(c => (char)c).Where(c => char.IsSymbol(c) || char.IsPunctuation(c)).ToArray()); Debug.Print(chars.Contains(',').ToString());
var chars = string.Join(string.Empty, Enumerable.Range(0, char.MaxValue + 1).Select(c => (char)c).Where(c => char.IsSymbol(c) || char.IsPunctuation(c)).ToArray()); Debug.Print(chars.Contains(',').ToString());
转载于:https://www.cnblogs.com/nanfei/p/3537900.html