예제 #1
0
 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());
 }
예제 #3
0
 public ReferenceTable(ObjectIdentitySet <TItem> items) : base(items)
 {
 }
예제 #4
0
 public TableRowOrColumn(string name, IEnumerable <T> elements)
 {
     Name     = name;
     Elements = new ObjectIdentitySet <T>(elements);
 }
예제 #5
0
 public GridRowOrColumn(ObjectIdentitySet <TStorage> elements, IEnumerable <ITableRowOrColumn <TStorage> > headers)
 {
     Elements = elements;
     Headers  = headers.ToList();
 }