ConversionFunctions.

ToBoolean(bool) Method

Summary

Converts the argument to a boolean
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
ConversionFunctions

Syntax

[Function("to-boolean")]
[Obsolete("Use type-specific conversion functions instead.", false)]
public static bool ToBoolean(bool value)

Attributes

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

Parameters

Name Type Description
value bool The string value to be converted to boolean. Must be 'true' or 'false'.

Return Value

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