System.CodeDom.CodeExpressionCollection.AddRange C# (CSharp) Method

AddRange() public method

public AddRange ( System.CodeDom.CodeExpression value ) : void
value System.CodeDom.CodeExpression
return void
        public void AddRange(CodeExpression[] value) {
            if (value == null) {
                throw new ArgumentNullException("value");
            }
            for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
                this.Add(value[i]);
            }
        }
        

Same methods

CodeExpressionCollection::AddRange ( CodeExpressionCollection value ) : void

Usage Example

		public void Constructor1_Deny_Unrestricted ()
		{
			CodeExpressionCollection coll = new CodeExpressionCollection (array);
			coll.CopyTo (array, 0);
			Assert.AreEqual (1, coll.Add (ce), "Add");
			Assert.AreSame (ce, coll[0], "this[int]");
			coll.AddRange (array);
			coll.AddRange (coll);
			Assert.IsTrue (coll.Contains (ce), "Contains");
			Assert.AreEqual (0, coll.IndexOf (ce), "IndexOf");
			coll.Insert (0, ce);
			coll.Remove (ce);
		}
All Usage Examples Of System.CodeDom.CodeExpressionCollection::AddRange