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

Remove() public method

public Remove ( CodeStatement value ) : void
value CodeStatement
return void
        public void Remove(CodeStatement value) {
            List.Remove(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::Remove