18 using System.Collections.Generic;
20 namespace Lucene.Net.Support.Compatibility
22 public static class SetFactory
24 public static ISet<T> CreateHashSet<T>()
27 return new WrappedHashSet<T>();
29 return new HashSet<T>();
33 public static ISet<T> CreateHashSet<T>(IEnumerable<T> other)
36 return new WrappedHashSet<T>(other);
38 return new HashSet<T>(other);