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); }
public bool HasStruct(string identifier) { return(StructIdentifierLookup.ContainsKey(identifier)); }