public void AddZDescType(IZDescType descType) { if (descType is ZDimType) { DimTypes.Add(descType as ZDimType); } else if (descType is ZEnumType) { ZEnumType zenum = descType as ZEnumType; EnumTypes.Add(zenum); //WordDictionary wordDictionary = zenum.WordTable; //WordDictionaryList.Add(wordDictionary); } else if (descType is ZClassType) { ZClassType zclass = descType as ZClassType; ClassTypes.Add(zclass); //WordDictionary wordDictionary = zclass.WordTable; //WordDictionaryList.Add(wordDictionary); } else { throw new ZyyRTException(); } }
public void AddZDescType(ZLType descType) { if (descType is ZLEnumInfo) { ZLEnumInfo zenum = descType as ZLEnumInfo; EnumTypes.Add(zenum); } else if (descType is ZLClassInfo) { ZLClassInfo zclass = descType as ZLClassInfo; ClassTypes.Add(zclass); } else { throw new ZyyRTException(); } }