CompilerWarningCollection.

IndexOf(CompilerWarning) Method

Summary

Retrieves the index of a specified NAnt.DotNet.Types.CompilerWarning object in the collection.
Assembly
NAnt.DotNet.dll
Namespace
NAnt.DotNet.Types
Containing Type
CompilerWarningCollection

Syntax

public int IndexOf(CompilerWarning item)

Parameters

Name Type Description
item CompilerWarning The NAnt.DotNet.Types.CompilerWarning object for which the index is returned.

Return Value

Type Description
int The index of the specified NAnt.DotNet.Types.CompilerWarning. If the NAnt.DotNet.Types.CompilerWarning is not currently a member of the collection, it returns -1.