Exemplo n.º 1
0
        /// <summary>
        /// Gets the field description hierarchy.
        /// </summary>
        /// <param name="fieldInfos">Collection of <see cref="IDataFieldInfo"/> instances.</param>
        protected virtual ContainerNode GetFieldDescriptionHierarchy(IEnumerable <IDataFieldInfo> fieldInfos)
        {
            if (fieldInfos == null)
            {
                throw new ArgumentNullException(nameof(fieldInfos));
            }

            var root = ContainerNode.CreateRootNode();

            foreach (var fieldInfoItem in fieldInfos)
            {
                var fieldDescriptionNode = new FieldInfoNode(fieldInfoItem);
                root.Children.Add(fieldDescriptionNode);
            }

            return(root);
        }
Exemplo n.º 2
0
 public EmptyFieldInfoData()
 {
     this.rootFieldInfo = ContainerNode.CreateRootNode();
 }