c#判断特殊字符?

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());

 

posted on 2014-02-04 16:48  空明流光  阅读(2888)  评论(0编辑  收藏  举报

导航