The C# Normalize function is utilized to generate a fresh string with identical text content, but with a binary format following Unicode normalization standards.
Signature
Example
public string Normalize()
public string Normalize(NormalizationForm)
Parameter
The initial function does not require any input parameters, whereas the subsequent function necessitates a parameter specifying the type of Normalization.
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#