Esempio n. 1
0
 public static void AddSource(object tag, string name, SourceSymbol symbol)
 {
     if (tag == null)
         throw new ArgumentNullException("Tag");
     if (!_entries.ContainsKey(tag))
         _entries.Add(tag, new Entry());
     _entries[tag].AddSource(name, symbol);
 }
Esempio n. 2
0
 public void AddSource(string name, SourceSymbol symbol)
 {
     List<SourceSymbol> set;
     if (_sources.ContainsKey(name))
         set = _sources[name];
     else
     {
         set = new List<SourceSymbol>();
         _sources.Add(name, set);
     }
     set.Add(symbol);
 }