NAnt SDK Documentation - v0.92

Int32ConversionFunctions.Parse Method 

Converts the specified string representation of a number to its 32-bit signed integer equivalent.

[Visual Basic]
<Function(Name:="parse")>
Public Shared Function Parse( _
   ByVal s As String _
) As Integer
[C#]
[Function(Name="parse")]
public static int Parse(
   string s
);

Parameters

s
A string containing a number to convert.

Return Value

A 32-bit signed integer equivalent to the number contained in s.

Remarks

The NumberFormatInfo for the invariant culture is used to supply formatting information about s.

Exceptions

Exception Type Condition
FormatException s is not of the correct format.
OverflowException s represents a number less than MinValue or greater than MaxValue.

See Also

Int32ConversionFunctions Class | NAnt.Core.Functions Namespace