public static HashSet <T> GetInstanceFromNewRange <T>(IEnumerable <T> iEnumerable) { HashSet <T> hashSet = new HashSet <T>(); hashSet.AddNewRange(iEnumerable); return(hashSet); }