Rhino.Ast.ObjectLiteral.AddElement C# (CSharp) Method

AddElement() public method

Adds an element to the list, and sets its parent to this node.
Adds an element to the list, and sets its parent to this node.
/// } if element is /// null ///
public AddElement ( ObjectProperty element ) : void
element ObjectProperty the property node to append to the end of the list
return void
		public virtual void AddElement(ObjectProperty element)
		{
			AssertNotNull(element);
			if (elements == null)
			{
				elements = new List<ObjectProperty>();
			}
			elements.Add(element);
			element.SetParent(this);
		}