System.CodeDom.CodeAttributeArgumentCollection.IndexOf C# (CSharp) Method

IndexOf() public method

public IndexOf ( CodeAttributeArgument value ) : int
value CodeAttributeArgument
return int
        public int IndexOf(CodeAttributeArgument value) {
            return List.IndexOf(value);
        }
        

Usage Example

		public void Constructor1 ()
		{
			CodeAttributeArgument caa1 = new CodeAttributeArgument ();
			CodeAttributeArgument caa2 = new CodeAttributeArgument ();

			CodeAttributeArgument[] arguments = new CodeAttributeArgument[] { caa1, caa2 };
			CodeAttributeArgumentCollection coll = new CodeAttributeArgumentCollection (
				arguments);

			Assert.AreEqual (2, coll.Count, "#1");
			Assert.AreEqual (0, coll.IndexOf (caa1), "#2");
			Assert.AreEqual (1, coll.IndexOf (caa2), "#3");
		}
All Usage Examples Of System.CodeDom.CodeAttributeArgumentCollection::IndexOf