public AddRange ( |
||
value | ||
리턴 | void |
public void AddRange(CodeExpressionCollection 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]);
}
}
CodeExpressionCollection::AddRange ( System.CodeDom.CodeExpression value ) : void |
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); }