NAnt SDK Documentation - v0.92 |

# StringFunctions.ToUpper Method

Returns the specified string converted to uppercase.

[Visual Basic]
<Function(Name:="to-upper")>
Public Shared Function ToUpper( _
ByVal s As String _
) As String
[C#]
[Function(Name="to-upper")]
public static string ToUpper(
string s
);

#### Parameters

s
  input string

#### Return Value

The string s in uppercase.

#### Remarks

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

#### Example

    string::to-upper('testing string') ==> 'TESTING STRING'

    string::to-upper('Testing String') ==> 'TESTING STRING'

    string::to-upper('Test 123') ==> 'TEST 123'

#### See Also

StringFunctions Class | NAnt.Core.Functions Namespace