//初始化复杂输出信息(公共) 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; } } }
//初始化复杂输出信息(公共) 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; } } }