コード例 #1
0
 public void Add(string key, string value)
 {
     if (ContainsKey(key))
     {
         ConstrainedList <string> refVal;
         if (TryGetValue(key, out refVal))
         {
             refVal.Enqueue(value);
         }
     }
     else
     {
         ConstrainedList <string> cl = new ConstrainedList <string>(MaxNumValues);
         cl.Enqueue(value);
         Add(key, cl);
     }
 }
コード例 #2
0
 public new void Add(string key, ConstrainedList <string> value)
 {
     base.Add(key, value);
     OnItemAdded(new DataItemEventArgs(key, value.Peek()));
 }