Example #1
0
 public void Add(NameIdValue <T> item)
 {
     NameToId[item.name] = item.id;
     IdToValue[item.id]  = item.value;
 }
Example #2
0
 public bool Remove(NameIdValue <T> item) => Remove(item.name);
Example #3
0
 public bool Contains(NameIdValue <T> item) => IdToValue.ContainsKey(item.id);