NAnt SDK Documentation - v0.92 |

# ConversionFunctions.ToBoolean Method

NOTE: This method is now obsolete.

Use type-specific conversion functions instead.

Converts the argument to a boolean

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

#### Parameters

value
  The string value to be converted to boolean. Must be 'true' or 'false'.

#### Return Value

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

#### See Also

ConversionFunctions Class | NAnt.Core.Functions Namespace