NAnt SDK Documentation - v0.92

ConversionFunctions.ConvertToString Method 

NOTE: This method is now obsolete.

Use type-specific conversion functions instead.


Converts the argument to a string.

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

Parameters

value
The value to be converted.

Return Value

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

Remarks

Named method ConvertToString as a static ToString method would break CLS compliance.

See Also

ConversionFunctions Class | NAnt.Core.Functions Namespace