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

Insert() public method

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

Usage Example

		public void Constructor0_Deny_Unrestricted ()
		{
			CodeStatementCollection coll = new CodeStatementCollection ();
			Assert.AreEqual (0, coll.Add (cs), "Add");
			Assert.AreSame (cs, coll[0], "this[int]");
			coll.CopyTo (array, 0);
			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::Insert