Example #1
0
        public TdlStruct AddStruct(string identifier)
        {
            if (identifier == "")
            {
                return(null);
            }
            TdlStruct tdlStruct = new TdlStruct(identifier, this);

            _Structs.Add(tdlStruct);
            StructIdentifierLookup.Add(identifier, tdlStruct);
            StructLookup.Add(tdlStruct.ObjectId, tdlStruct);
            Root.AddStruct(tdlStruct);
            return(tdlStruct);
        }
Example #2
0
 public bool HasStruct(string identifier)
 {
     return(StructIdentifierLookup.ContainsKey(identifier));
 }