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

Remove() public method

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