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

Insert() public method

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

Usage Example

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