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

CopyTo() public method

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

Usage Example

		public void Constructor1_Deny_Unrestricted ()
		{
			CodeCommentStatementCollection coll = new CodeCommentStatementCollection (array);
			coll.CopyTo (array, 0);
			Assert.AreEqual (1, coll.Add (ccs), "Add");
			Assert.AreSame (ccs, coll[0], "this[int]");
			coll.AddRange (array);
			coll.AddRange (coll);
			Assert.IsTrue (coll.Contains (ccs), "Contains");
			Assert.AreEqual (0, coll.IndexOf (ccs), "IndexOf");
			coll.Insert (0, ccs);
			coll.Remove (ccs);
		}