public void Add(ClassEntry value) { string name = ParserDatabase.GetDecoratedName(value); contents [name] = value; if (contents_ci != null) { contents_ci [name] = value; } }
public ClassEntry GetClass(string name, int genericArgumentCount, bool caseSensitive) { string fullName = ParserDatabase.GetDecoratedName(name, genericArgumentCount); ClassEntry ne = contents[fullName] as ClassEntry; if (ne != null || caseSensitive) { return(ne); } if (contents_ci == null) { BuildCaseInsensitiveTable(); } return(contents_ci[fullName] as ClassEntry); }
public void Remove(ClassEntry entry) { contents.Remove(ParserDatabase.GetDecoratedName(entry)); contents_ci = null; }