StringNormalizationExtensions.IsNormalized Method

Definition

Indicates whether a string is normalized.

Overloads

IsNormalized(String)

Indicates whether the specified string is in Unicode normalization form C.

IsNormalized(String, NormalizationForm)

Indicates whether a string is in a specified Unicode normalization form.

IsNormalized(String)

Indicates whether the specified string is in Unicode normalization form C.

public static bool IsNormalized (this string value);
Parameters
value
String

A string.

Returns

true if value is in normalization form C; otherwise, false.

Exceptions

value is null.

value contains invalid Unicode characters.

IsNormalized(String, NormalizationForm)

Indicates whether a string is in a specified Unicode normalization form.

public static bool IsNormalized (this string value, System.Text.NormalizationForm normalizationForm);
Parameters
value
String

A string.

normalizationForm
NormalizationForm

A Unicode normalization form.

Returns

true if value is in normalization form normalizationForm; otherwise, false.

Exceptions

value is null.

value contains invalid Unicode characters.

Applies to