示例#1
0
        public TdlClass AddClass(string identifier)
        {
            if (identifier == "")
            {
                return(null);
            }
            TdlClass tdlClass = new TdlClass(identifier, this);

            _Classes.Add(tdlClass);
            ClassIdentifierLookup.Add(identifier, tdlClass);
            ClassLookup.Add(tdlClass.ObjectId, tdlClass);
            Root.AddClass(tdlClass);
            return(tdlClass);
        }
示例#2
0
 public bool HasClass(string identifier)
 {
     return(ClassIdentifierLookup.ContainsKey(identifier));
 }