mscorlib(4.0.0.0) API with additions
StringNormalizationExtensions.cs
2 using System.Security;
3 using System.Text;
4 
5 namespace System
6 {
8  [EditorBrowsable(EditorBrowsableState.Never)]
9  public static class StringNormalizationExtensions
10  {
17  [EditorBrowsable(EditorBrowsableState.Never)]
18  public static bool IsNormalized(this string value)
19  {
20  return value.IsNormalized(NormalizationForm.FormC);
21  }
22 
30  [SecurityCritical]
31  [EditorBrowsable(EditorBrowsableState.Never)]
32  public static bool IsNormalized(this string value, NormalizationForm normalizationForm)
33  {
34  return value.IsNormalized(normalizationForm);
35  }
36 
40  [EditorBrowsable(EditorBrowsableState.Never)]
41  public static string Normalize(this string value)
42  {
43  return value.Normalize(NormalizationForm.FormC);
44  }
45 
50  [SecurityCritical]
51  [EditorBrowsable(EditorBrowsableState.Never)]
52  public static string Normalize(this string value, NormalizationForm normalizationForm)
53  {
54  return value.Normalize(normalizationForm);
55  }
56  }
57 }
EditorBrowsableState
Specifies the browsable state of a property or method from within an editor.
Definition: __Canon.cs:3
NormalizationForm
Defines the type of normalization to perform.
Provides extension methods to work with normalized strings.
static bool IsNormalized(this string value, NormalizationForm normalizationForm)
Indicates whether a string is in a specified Unicode normalization form.
static bool IsNormalized(this string value)
Indicates whether the specified string is in Unicode normalization form C.
static string Normalize(this string value)
Normalizes a string to a Unicode normalization form C.
static string Normalize(this string value, NormalizationForm normalizationForm)
Normalizes a string to the specified Unicode normalization form.