public IEnumerable <T> Intersect(ObjectIdentitySet <T> other) { foreach (var item in items) { foreach (var otherItem in other.items) { if (object.ReferenceEquals(item, otherItem)) { yield return(item); } } } }
public TableImplementation(ObjectIdentitySet <TStorage> items) { Items = items; this.WithCellFunction(i => i.Count()); }
public ReferenceTable(ObjectIdentitySet <TItem> items) : base(items) { }
public TableRowOrColumn(string name, IEnumerable <T> elements) { Name = name; Elements = new ObjectIdentitySet <T>(elements); }
public GridRowOrColumn(ObjectIdentitySet <TStorage> elements, IEnumerable <ITableRowOrColumn <TStorage> > headers) { Elements = elements; Headers = headers.ToList(); }