using System.Collections.Generic; namespace TyphoonFontTool { internal static class Extension { /// /// 转hash表 /// public static HashSet ToHashSet(this IEnumerable enumerable) { var result = new HashSet(); foreach (var item in enumerable) { result.Add(item); } return result; } } }