CodeTypeParameterCollection.IndexOf Method (CodeTypeParameter)


Gets the index in the collection of the specified CodeTypeParameter object, if it exists in the collection.

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public int IndexOf(
	CodeTypeParameter value


Type: System.CodeDom.CodeTypeParameter

The CodeTypeParameter object to locate in the collection.

Return Value

Type: System.Int32

The zero-based index of the specified CodeTypeParameter object in the collection if found; otherwise, -1.

.NET Framework
Available since 2.0
Return to top