C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
C# String ToUpper()The C# ToUpper() method is used to convert string into uppercase. It returns a string. Signaturepublic string ToUpper() public string ToUpper(CultureInfo) ParameterFirst method does not take any parameter. ReturnIt returns a string C# String ToUpper() Method Exampleusing System; public class StringExample { public static void Main(string[] args) { string s1 = "Hello C#"; string s3 = s1.ToUpper(); Console.WriteLine(s3); } } Output: HELLO C#
Next TopicC# String ToUpperInvariant()
|