Esempio n. 1
0
 public static IReadOnlyIndexer <K1, K2, K3, T> ReadOnly <K1, K2, K3, T>(this IWriteableIndexer <K1, K2, K3, T> source)
 {
     return(new ReadonlyIndexer <K1, K2, K3, T>(source.Getter, source.Getter2, source.Getter3));
 }
Esempio n. 2
0
 public static IWriteableIndexer <K1, K2, K3, T> And <K1, K2, K3, T>(this IWriteableIndexer <K1, K2, T> source, Func <K3, T> getter3, Action <K3, T> setter3)
 {
     return(new WriteableIndexer <K1, K2, K3, T>(source.Getter, source.Setter, source.Getter2, source.Setter2, getter3, setter3));
 }
Esempio n. 3
0
 public static IWriteableIndexer <K1, K2, K3, T> And <K1, K2, K3, T>(this IWriteableIndexer <K1, K2, T> source, IDictionary <K3, T> dictionary)
 {
     return(new WriteableIndexer <K1, K2, K3, T>(source.Getter, source.Setter, source.Getter2, source.Setter2, k => dictionary[k], (k, t) => dictionary[k] = t));
 }
Esempio n. 4
0
 public static IReadOnlyIndexer <K, T> ReadOnly <K, T>(this IWriteableIndexer <K, T> source)
 {
     return(new ReadonlyIndexer <K, T>(source.Getter));
 }