public void add(Type type, TypeItem ti) { if (table.ContainsKey(type)) { table[type].Add(ti); } else { List <TypeItem> temp = new List <TypeItem>(); temp.Add(ti); table.Add(type, temp); } }
public void add(string typeName, string nameSpace, string filename) { TypeItem typeItem = new TypeItem(); typeItem.file = filename; typeItem.nameSpace = nameSpace; if (typeTableItems.ContainsKey(typeName)) { typeTableItems[typeName].Add(typeItem); } else { List <TypeItem> typeItemList = new List <TypeItem>(); typeItemList.Add(typeItem); typeTableItems.Add(typeName, typeItemList); } }