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

Insert() public method

public Insert ( int index, CodeCommentStatement value ) : void
index int
value CodeCommentStatement
return void
        public void Insert(int index, CodeCommentStatement value) {
            List.Insert(index, value);
        }
        

Usage Example

		public void Constructor0_Deny_Unrestricted ()
		{
			CodeCommentStatementCollection coll = new CodeCommentStatementCollection ();
			Assert.AreEqual (0, coll.Add (ccs), "Add");
			Assert.AreSame (ccs, coll[0], "this[int]");
			coll.CopyTo (array, 0);
			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);
		}
All Usage Examples Of System.CodeDom.CodeCommentStatementCollection::Insert