public ObservingIndexSet(ObservableCollection <T> observableCollection, IndexSpecification <T> indexSpecification)
     : base(observableCollection, indexSpecification)
 {
     _observableCollection = observableCollection;
     SetupEventHandlers();
 }
Пример #2
0
 public IndexSet(IEnumerable <T> source, IndexSpecification <T> indexSpecification)
 {
     IndexSpecification = indexSpecification;
     SetupIndices(source);
 }
 public static IndexSet <TChild> BuildIndicesFor <TChild>(
     IEnumerable <TChild> enumerable,
     IndexSpecification <TChild> specification)
 {
     return(new IndexSet <TChild>(enumerable, specification));
 }
Пример #4
0
 public IndexSet(IndexSpecification <T> indexSpecification)
     : this(new List <T>(), indexSpecification)
 {
 }
 public static IndexSet <TChild> BuildIndicesFor <TChild>(
     ObservableCollection <TChild> observableCollection,
     IndexSpecification <TChild> specification) where TChild : INotifyPropertyChanged
 {
     return(new ObservingIndexSet <TChild>(observableCollection, specification));
 }