System.CodeDom.CodeStatementCollection.CopyTo C# (CSharp) Method

CopyTo() public method

public CopyTo ( CodeStatement array, int index ) : void
array CodeStatement
index int
return void
        public void CopyTo(CodeStatement[] array, int index) {
            List.CopyTo(array, index);
        }
        

Usage Example

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