NAnt SDK Documentation - v0.92

Int64ConversionFunctions.Parse Method 

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

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

Parameters

s
A string containing a number to convert.

Return Value

A 64-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

Int64ConversionFunctions Class | NAnt.Core.Functions Namespace