4 using System.Collections.Generic;
5 using System.Collections.Specialized;
8 namespace SiliconStudio.Core.Collections
25 public bool Add(T item)
27 if (innerHashSet.Add(item))
29 if (CollectionChanged != null)
40 throw new NotImplementedException();
46 throw new NotImplementedException();
52 return innerHashSet.IsProperSubsetOf(other);
58 return innerHashSet.IsProperSupersetOf(other);
64 return innerHashSet.IsSubsetOf(other);
70 return innerHashSet.IsSupersetOf(other);
76 return innerHashSet.Overlaps(other);
82 return innerHashSet.SetEquals(other);
88 throw new NotImplementedException();
94 throw new NotImplementedException();
100 innerHashSet.Add(item);
106 if (CollectionChanged != null)
108 foreach (var item
in innerHashSet.ToArray())
115 innerHashSet.Clear();
122 return innerHashSet.Contains(item);
126 public void CopyTo(T[] array,
int arrayIndex)
128 innerHashSet.CopyTo(array, arrayIndex);
134 get {
return innerHashSet.Count; }
138 public bool IsReadOnly
146 var result = innerHashSet.Remove(item);
148 if (CollectionChanged != null && result)
157 return innerHashSet.GetEnumerator();
163 return innerHashSet.GetEnumerator();
167 System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
169 return innerHashSet.GetEnumerator();
bool Contains(T item)
Determines whether the set [contains] [the specified item]. The item.true if the set [contains] [the ...
HashSet< T >.Enumerator GetEnumerator()
void SymmetricExceptWith(IEnumerable< T > other)
bool IsProperSubsetOf(IEnumerable< T > other)
EventHandler< TrackingCollectionChangedEventArgs > CollectionChanged
bool IsProperSupersetOf(IEnumerable< T > other)
bool IsSupersetOf(IEnumerable< T > other)
bool SetEquals(IEnumerable< T > other)
void IntersectWith(IEnumerable< T > other)
This is a minimal implementation of the missing HashSet from Silverlight BCL It's nowhere near the re...
bool Overlaps(IEnumerable< T > other)
void CopyTo(T[] array, int arrayIndex)
bool IsSubsetOf(IEnumerable< T > other)
void ExceptWith(IEnumerable< T > other)
void UnionWith(IEnumerable< T > other)