NAnt SDK Documentation - v0.92

ConversionFunctions.ToInt Method 

NOTE: This method is now obsolete.

Use type-specific conversion functions instead.


Converts the argument to an integer.

[Visual Basic]
<Obsolete(Message:="Use type-specific conversion functions instead.", IsError:=False), _  Function(Name:="to-int")>
Public Shared Function ToInt( _
   ByVal value As Integer _
) As Integer
[C#]
[Obsolete(Message="Use type-specific conversion functions instead.", IsError=False)]
[Function(Name="to-int")]
public static int ToInt(
   int value
);

Parameters

value
value to be converted

Return Value

value converted to integer. The function fails with an exception when the conversion is not possible.

See Also

ConversionFunctions Class | NAnt.Core.Functions Namespace