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

Insert() public method

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

Usage Example

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