Пример #1
0
        protected void InitPackageDescTable()
        {
            _PackageDescTable = new Dictionary <string, ZPackageInfo>();

            var refTypes = ZAssembly.GetTypes();

            foreach (var type in refTypes)
            {
                if (type.IsPublic)
                {
                    string packageName = type.Namespace;
                    packageName = packageName.Replace('.', '/');
                    ZPackageInfo zpackage = GetZPackageDesc(packageName);
                    var          descType = ZTypeManager.GetByMarkType(type);
                    if (descType != null)
                    {
                        zpackage.AddZDescType(descType);
                    }
                    else
                    {
                        var zdim = ZTypeManager.CreateZLDimImp(type);
                        if (zdim != null)
                        {
                            zpackage.AddZDimType(zdim);
                        }
                    }
                }
            }
        }
Пример #2
0
        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);
                    }
                }
            }
        }