protected ZPackageDesc GetZPackageDesc(string packageName) { if (PackageDescTable.ContainsKey(packageName)) { return(PackageDescTable[packageName]); } else { ZPackageDesc zpackage = new ZPackageDesc(packageName); PackageDescTable.Add(packageName, zpackage); return(zpackage); } }
protected void InitPackageDescTable() { _PackageDescTable = new Dictionary <string, ZPackageDesc>(); var refTypes = ZAssembly.GetTypes(); foreach (var type in refTypes) { if (type.IsPublic) { string packageName = type.Namespace; ZPackageDesc zpackage = GetZPackageDesc(packageName); IZDescType descType = ZTypeManager.GetByMarkType(type); if (descType != null) { zpackage.AddZDescType(descType); } } } }