Ejemplo n.º 1
0
 protected IndexedList <T, TAttribute> IndexedList <TAttribute>
     (Func <T, IEnumerable <TAttribute> > valueFunc, [CallerMemberName] string callerMember = "")
 {
     if (this.Building)
     {
         return(new IndexedList <T, TAttribute>(valueFunc));
     }
     else
     {
         return((IndexedList <T, TAttribute>)IndexedValues.First(v => v.PropertyName == callerMember));
     }
 }
 protected UniqueIndexedValue <T, TAtt1, TAtt2, TAtt3> UniqueIndexedValue <TAtt1, TAtt2, TAtt3>(
     Func <T, CompoundValue <TAtt1, TAtt2, TAtt3> > valueFunc,
     Func <T, bool> shouldIndexPredicate,
     [CallerMemberName] string callerMember = "")
 {
     if (this.Building)
     {
         return(new UniqueIndexedValue <T, TAtt1, TAtt2, TAtt3>(valueFunc, shouldIndexPredicate));
     }
     else
     {
         return((UniqueIndexedValue <T, TAtt1, TAtt2, TAtt3>)IndexedValues.First(v => v.PropertyName == callerMember));
     }
 }
Ejemplo n.º 3
0
 protected IndexedValue <T, TAttribute> IndexedValue <TAttribute>(
     Func <T, TAttribute> valueFunc,
     Func <T, bool> shouldIndexPredicate,
     [CallerMemberName] string callerMember = "")
 {
     if (this.Building)
     {
         return(new IndexedValue <T, TAttribute>(valueFunc, shouldIndexPredicate));
     }
     else
     {
         return((IndexedValue <T, TAttribute>)IndexedValues.First(v => v.PropertyName == callerMember));
     }
 }