Summary
Returns the specified string converted to uppercase.
Syntax
[Function("to-upper")]
public static string ToUpper(string s)
Examples
string::to-upper('testing string') ==> 'TESTING STRING'
string::to-upper('Testing String') ==> 'TESTING STRING'
string::to-upper('Test 123') ==> 'TEST 123'
The casing rules of the invariant culture are used to convert the
s to uppercase.
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 uppercase.
|