Char.IsBetween(Char, Char, Char) 方法

定义

指示字符是否在指定的非独占范围内。

public:
 static bool IsBetween(char c, char minInclusive, char maxInclusive);
public static bool IsBetween (char c, char minInclusive, char maxInclusive);
static member IsBetween : char * char * char -> bool
Public Shared Function IsBetween (c As Char, minInclusive As Char, maxInclusive As Char) As Boolean

参数

c
Char

要计算的字符。

minInclusive
Char

下限(含)。

maxInclusive
Char

上限(含)。

返回

true 如果 c 在指定范围内,则为 ;否则为 false

注解

方法不验证 maxInclusive 是否大于或等于 minInclusive。 如果 maxInclusive 小于 minInclusive,则行为未定义。

适用于