Ejemplo n.º 1
0
 public object GetOrAdd(WeakKeyDictionary <object, object, object, int, object> d, Tuple <object, object, object, int> k, object v)
 {
     return(d.GetOrAdd(k.Item1, k.Item2, k.Item3, k.Item4, v));
 }
Ejemplo n.º 2
0
 public object GetOrAdd(WeakKeyDictionary <object, object, object, int, object> d, Tuple <object, object, object, int> k, Func <Tuple <object, object, object, int>, object> valueFactory)
 {
     return(d.GetOrAdd(k.Item1, k.Item2, k.Item3, k.Item4, (kp1, kp2, kp3, kp4) => valueFactory(Tuple.Create(kp1, kp2, kp3, kp4))));
 }