String Normalize()

The C# Normalize method is used to get a new string whose textual value is same as this string, but whose binary representation is in Unicode normalization form.

Signature

Example

public string Normalize()
public string Normalize(NormalizationForm)

Parameter

First method does not take any parameter but second method takes a parameter of Normalization type.

Return

It returns normalized string.

C# String Normalize Method Example.

Example

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

Output:

Output

Hello C#

Input Required

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