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

AddRange() public method

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

Same methods

CodeAttributeArgumentCollection::AddRange ( CodeAttributeArgumentCollection value ) : void

Usage Example

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