wasSharp
/Collections/Specialized/ObservableHashSet.cs |
@@ -19,7 +19,7 @@ |
/// An implementation of an observable HashSet. |
/// </summary> |
/// <typeparam name="T">the object type</typeparam> |
public class ObservableHashSet<T> : ICollection<T>, INotifyCollectionChanged |
public class ObservableHashSet<T> : ICollection<T>, INotifyCollectionChanged, IEnumerable<T> |
{ |
private readonly HashSet<T> store = new HashSet<T>(); |
|
@@ -132,5 +132,10 @@ |
removed)); |
IsVirgin = false; |
} |
|
public IEnumerable<T> AsEnumerable() |
{ |
return store.AsEnumerable(); |
} |
} |
} |