String Toupperinvariant() - C# Tutorial
C# Course / Strings / String Toupperinvariant()

String Toupperinvariant()

BLUF: Mastering String Toupperinvariant() is essential for building robust applications with the .NET ecosystem. This tutorial provides clear explanations and practical examples to help you understand and apply this C# concept.
Enterprise Development Tip: String Toupperinvariant()

C# is a powerful, modern language for enterprise solutions. Discover how String Toupperinvariant() enhances your development workflow in the guide below.

The C# ToUpperInvariant function is employed to transform a string into uppercase following the capitalization conventions of the invariant culture.

Signature

Example

public string ToUpperInvariant()

Parameter

It does not take any parameter

Return

It returns a string.

C# String ToUpperInvariant Method Example

Example

using System; 
    		
    public class StringExample  
    {  
        public static void Main(string[] args)  
        {  
           string s1 = "Hello C#";
           string s3 = s1.ToUpperInvariant();
           Console.WriteLine(s3);
         }  
    }

Output:

Output

HELLO C#

Input Required

This code uses input(). Please provide values below:

Logic Practice
Install Logic Practice
Add to home screen for a faster app-like experience