示例#1
0
        public void Add(ClassEntry value)
        {
            string name = ParserDatabase.GetDecoratedName(value);

            contents [name] = value;
            if (contents_ci != null)
            {
                contents_ci [name] = value;
            }
        }
示例#2
0
        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);
        }
示例#3
0
 public void Remove(ClassEntry entry)
 {
     contents.Remove(ParserDatabase.GetDecoratedName(entry));
     contents_ci = null;
 }