CopyTo() public method

public CopyTo ( CodeTypeMember array, int index ) : void
array CodeTypeMember
index int
return void
Exemplo n.º 1
0
		public void Constructor1_Deny_Unrestricted ()
		{
			CodeTypeMemberCollection coll = new CodeTypeMemberCollection (array);
			coll.CopyTo (array, 0);
			Assert.AreEqual (1, coll.Add (ctm), "Add");
			Assert.AreSame (ctm, coll[0], "this[int]");
			coll.AddRange (array);
			coll.AddRange (coll);
			Assert.IsTrue (coll.Contains (ctm), "Contains");
			Assert.AreEqual (0, coll.IndexOf (ctm), "IndexOf");
			coll.Insert (0, ctm);
			coll.Remove (ctm);
		}