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

Insert() public method

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

Usage Example

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