System.CodeDom.CodeCommentStatementCollection.Contains C# (CSharp) Method

Contains() public method

public Contains ( CodeCommentStatement value ) : bool
value CodeCommentStatement
return bool
        public bool Contains(CodeCommentStatement value) {
            return List.Contains(value);
        }
        

Usage Example

		public void Constructor0_Deny_Unrestricted ()
		{
			CodeCommentStatementCollection coll = new CodeCommentStatementCollection ();
			Assert.AreEqual (0, coll.Add (ccs), "Add");
			Assert.AreSame (ccs, coll[0], "this[int]");
			coll.CopyTo (array, 0);
			coll.AddRange (array);
			coll.AddRange (coll);
			Assert.IsTrue (coll.Contains (ccs), "Contains");
			Assert.AreEqual (0, coll.IndexOf (ccs), "IndexOf");
			coll.Insert (0, ccs);
			coll.Remove (ccs);
		}