StringFunctions.

ToLower(string) Method

Summary

Returns the specified string converted to lowercase.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
StringFunctions

Syntax

[Function("to-lower")]
public static string ToLower(string s)

Examples

string::to-lower('testing string') ==> 'testing string'
string::to-lower('Testing String') ==> 'testing string'
string::to-lower('Test 123') ==> 'test 123'

Remarks

The casing rules of the invariant culture are used to convert the s to lowercase.

Attributes

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

Parameters

Name Type Description
s string input string

Return Value

Type Description
string The string s in lowercase.