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

SetElements() public method

Sets the element list, and updates the parent of each element.
Sets the element list, and updates the parent of each element. Replaces any existing elements.
public SetElements ( IList elements ) : void
elements IList /// the element list. Can be /// null /// . ///
return void
		public virtual void SetElements(IList<ObjectProperty> elements)
		{
			if (elements == null)
			{
				this.elements = null;
			}
			else
			{
				if (this.elements != null)
				{
					this.elements.Clear();
				}
				foreach (ObjectProperty o in elements)
				{
					AddElement(o);
				}
			}
		}