コード例 #1
0
 public TValue this[TKeyA keyA, TKeyB keyB, TKeyC keyC]
 {
     get
     {
         var key = KeyTriple.Create(keyA, keyB, keyC);
         return(base.ContainsKey(key) ? base[key] : default(TValue));
     }
     set
     {
         var key = KeyTriple.Create(keyA, keyB, keyC);
         if (!ContainsKey(key))
         {
             base.Add(key, value);
         }
         this[key] = value;
     }
 }
コード例 #2
0
 public void Add(TKeyA keyA, TKeyB keyB, TKeyC keyC, TValue value)
 {
     base.Add(KeyTriple.Create(keyA, keyB, keyC), value);;
 }
コード例 #3
0
    public bool ContainsKey(TKeyA keyA, TKeyB keyB, TKeyC keyC)
    {
        var key = KeyTriple.Create(keyA, keyB, keyC);

        return(base.ContainsKey(key));
    }