Пример #1
0
 public static void AddReference(object tag, string name, ReferenceSymbol symbol)
 {
     if (tag == null)
         throw new ArgumentNullException("Tag");
     if (!_entries.ContainsKey(tag))
         _entries.Add(tag, new Entry());
     _entries[tag].AddReference(name, symbol);
 }
Пример #2
0
 public void AddReference(string name, ReferenceSymbol symbol)
 {
     KeyValuePair<string, List<ReferenceSymbol>> pair;
     if (_references.ContainsKey(name))
         pair = _references[name];
     else
     {
         pair = new KeyValuePair<string, List<ReferenceSymbol>>(name, new List<ReferenceSymbol>());
         _references.Add(name, pair);
     }
     pair.Value.Add(symbol);
 }