In Unicode strings, there are different normalization forms. With the IsNormalized method you can test for normalized character data.
Detail We declare a string that has an accent in it. With Normalize and IsNormalized, only non-ASCII characters are affected.
And IsNormalized returns true if the string is normalized to FormC. It returns false if the form is FormD.
Note You can also pass an argument to IsNormalized. In this case, that specific normalization form is checked.
static void Main()
const string input = "á"
string val2 = input.Normalize();
string val3 = input.Normalize(NormalizationForm.FormD);