/// <summary> /// Gets a list of fields from the parameters. /// </summary> /// <param name="name">The name of the list.</param> /// <returns>The entries in the list.</returns> public IPropertyList GetList(string name) { SimplePropertyList list = new SimplePropertyList(); TokenTreeList children = this[0].GetChildren(name); list.AddRange(children.Select(child => new SimpleProperty("item", child.Name))); return list; }
/// <summary> /// Constructor. /// </summary> /// <param name="elementType">The element type.</param> public SimpleElement(string elementType) { Children = new List<IElement>(); ElementType = elementType; Properties = new SimplePropertyList(); }