Int32ConversionFunctions.

Parse(string) Method

Summary

Converts the specified string representation of a number to its 32-bit signed integer equivalent.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
Int32ConversionFunctions

Syntax

[Function("parse")]
public static int Parse(string s)

Remarks

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

Attributes

Type Description
FunctionAttribute Indicates that the method should be exposed as a function in NAnt build files.

Parameters

Name Type Description
s string A string containing a number to convert.

Return Value

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