using System;
using System.Text;
class Sample
{
public static void Main()
{
string s1 = new String( new char[] {'\u0063', '\u0301', '\u0327', '\u00BE'});
string s2 = null;
try
{
Show("s1", s1);
Console.WriteLine(s1.IsNormalized());
Console.WriteLine(s1.IsNormalized(NormalizationForm.FormC));
Console.WriteLine(s1.IsNormalized(NormalizationForm.FormD));
Console.WriteLine(s1.IsNormalized(NormalizationForm.FormKC));
Console.WriteLine(s1.IsNormalized(NormalizationForm.FormKD));
}catch (Exception e) {
Console.WriteLine(e.Message);
}
}
private static void Show(string title, string s)
{
Console.Write("Characters in string {0} = ", title);
foreach(short x in s.ToCharArray()){
Console.Write("{0:X4} ", x);
}
}
}