Char.ToLowerInvariant(Char) Method

Definition

使用固定区域性的大小写规则,将 Unicode 字符的值转换为其小写等效项。Converts the value of a Unicode character to its lowercase equivalent using the casing rules of the invariant culture.

public:
 static char ToLowerInvariant(char c);
public static char ToLowerInvariant (char c);
static member ToLowerInvariant : char -> char
Public Shared Function ToLowerInvariant (c As Char) As Char

Parameters

c
Char

要转换的 Unicode 字符。The Unicode character to convert.

Returns

Char

c 参数的小写等效项,或者,如果 c 已经是小写字母或不是字母,则为 c 的未更改值。The lowercase equivalent of the c parameter, or the unchanged value of c, if c is already lowercase or not alphabetic.

Remarks

如果你的应用程序不受当前区域性的影响,并且依赖于以可预测方式更改的字符的大小写,则使用 ToLowerInvariant 方法。If your application is unaffected by the current culture and depends on the case of a character changing in a predictable way, then use the ToLowerInvariant method. ToLowerInvariant 方法等效于 ToLower(Char, CultureInfo.InvariantCulture)The ToLowerInvariant method is equivalent to ToLower(Char, CultureInfo.InvariantCulture).

使用 String.ToLowerInvariant 将字符串转换为小写。Use String.ToLowerInvariant to convert a string to lowercase.

Applies to

See also