#if FAT using System; using System.Collections.Generic; namespace LinqInternal.Collections.Specialized { internal class EnumerationSet : EnumerationCollection, ISet, IReadOnlySet, IExtendedReadOnlySet, IExtendedSet { public EnumerationSet(IEnumerable wrapped) : base(wrapped) { //Empty } public EnumerationSet(T[] wrapped) : base(wrapped) { //Empty } public EnumerationSet(ICollection wrapped) : base(wrapped) { //Empty } public EnumerationSet(IEnumerable wrapped, Func count) : base(wrapped, count) { //Empty } public EnumerationSet(IEnumerable wrapped, Func contains) : base(wrapped, contains) { //Empty } public EnumerationSet(IEnumerable wrapped, Func count, Func contains) : base(wrapped, count, contains) { //Empty } IReadOnlySet IExtendedSet.AsReadOnly { get { return this; } } bool IExtendedSet.Add(T item) { throw new NotSupportedException(); } bool IExtendedSet.Remove(T item, IEqualityComparer comparer) { throw new NotSupportedException(); } bool ISet.Add(T item) { throw new NotSupportedException(); } void ISet.ExceptWith(IEnumerable other) { throw new NotSupportedException(); } void ISet.IntersectWith(IEnumerable other) { throw new NotSupportedException(); } void ISet.SymmetricExceptWith(IEnumerable other) { throw new NotSupportedException(); } void ISet.UnionWith(IEnumerable other) { throw new NotSupportedException(); } public bool IsProperSubsetOf(IEnumerable other) { return Extensions.IsProperSubsetOf(this, other); } public bool IsProperSupersetOf(IEnumerable other) { return Extensions.IsProperSupersetOf(this, other); } public bool IsSubsetOf(IEnumerable other) { return Extensions.IsSubsetOf(this, other); } public bool IsSupersetOf(IEnumerable other) { return Extensions.IsSupersetOf(this, other); } public bool Overlaps(IEnumerable other) { return Extensions.Overlaps(this, other); } public bool SetEquals(IEnumerable other) { return Extensions.SetEquals(this, other); } } } #endif