public AddRange ( |
||
value | ||
return | void |
public void AddRange(CodeTypeReferenceCollection 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]);
}
}
CodeTypeReferenceCollection::AddRange ( |
public void Constructor1_Deny_Unrestricted () { CodeTypeReferenceCollection coll = new CodeTypeReferenceCollection (array); coll.CopyTo (array, 0); Assert.AreEqual (1, coll.Add (ctr), "Add"); Assert.AreSame (ctr, coll[0], "this[int]"); coll.AddRange (array); coll.AddRange (coll); Assert.IsTrue (coll.Contains (ctr), "Contains"); Assert.AreEqual (0, coll.IndexOf (ctr), "IndexOf"); coll.Insert (0, ctr); coll.Remove (ctr); }