Ejemplo n.º 1
0
        //初始化复杂输出信息(公共)
        private void Initialize(ComplexOutputInfo parent)
        {
            foreach (var children in parent.Children)
            {
                switch (children.Type)
                {
                case EOutputType.Collection:
                    HasCollectionProperty = true;
                    //SubItemCollection.Add((CollectionOutputInfo)children);
                    break;

                case EOutputType.Object:
                    Initialize((ObjectOutputInfo)children);
                    break;
                }
            }
        }
Ejemplo n.º 2
0
        //初始化复杂输出信息(公共)
        private void Initialize(ComplexOutputInfo parent)
        {
            foreach (var children in parent.Children)
            {
                switch (children.Type)
                {
                case EOutputType.Collection:
                    HasCollectionProperty = true;
                    break;

                case EOutputType.Object:
                    if (((ComplexOutputInfo)children).Initialize())
                    {
                        HasCollectionProperty = true;
                    }
                    break;
                }
            }
        }