public AddRange ( |
||
value | ||
return | void |
public void AddRange(CodeDirectiveCollection value) {
if (value == null) {
throw new ArgumentNullException("value");
}
int currentCount = value.Count;
for (int i = 0; i < currentCount; i = ((i) + (1))) {
this.Add(value[i]);
}
}
CodeDirectiveCollection::AddRange ( System.CodeDom.CodeDirective value ) : void |
public void Constructor0_Deny_Unrestricted () { CodeDirectiveCollection coll = new CodeDirectiveCollection (); Assert.AreEqual (0, coll.Add (cd), "Add"); Assert.AreSame (cd, coll[0], "this[int]"); coll.CopyTo (array, 0); coll.AddRange (array); coll.AddRange (coll); Assert.IsTrue (coll.Contains (cd), "Contains"); Assert.AreEqual (0, coll.IndexOf (cd), "IndexOf"); coll.Insert (0, cd); coll.Remove (cd); }