Lines Matching defs:set
45 public static bool add<T>( this HashSet<T> set, T item )
47 return set.Add( item );
51 public static void addAll<T>( this HashSet<T> set, IEnumerable<T> items )
54 set.Add( item );
59 public static void clear<T>( this HashSet<T> set )
61 set.Clear();
65 public static bool contains<T>( this HashSet<T> set, T value )
67 return set.Contains( value );
71 public static bool remove<T>( this HashSet<T> set, T item )
73 return set.Remove( item );
77 public static int size<T>( this HashSet<T> set )
79 return set.Count;
83 public static T[] toArray<T>( this HashSet<T> set )
85 return set.ToArray();