string class : ToUpper() method

Description

Gets a new instance of the string that lowercase in the invoker string converts to uppercase.

Syntax

stringInstance.ToUpper()

Arguments

None

Return value

ClassDescription
stringA new instance of the string that lowercase in the invoker string converts to uppercase.

Sample code

//anyString is a instance of string type.

string upperString = anyString.ToUpper();

Notes

It's a wrapper of the System.String.ToUpper().

Links for reference

Copyright © Rice All rights reserved.