BooleanConversionFunctions.

ToString(bool) Method

Summary

Converts the specified bool to its equivalent string representation.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
BooleanConversionFunctions

Syntax

[Function("to-string")]
public static string ToString(bool value)

Attributes

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

Parameters

Name Type Description
value bool A bool to convert.

Return Value

Type Description
string "True" if value is true, or "False" if value is false.