日期:2014-05-17 浏览次数:20791 次
public static class Extension { public static bool In(this string src, params string[] strs) { return strs.Where(s => s == src).Count() > 0; } } // 调用 Console.WriteLine("aa".In("aa", "bb", "cc"));