Char.IsBetween(Char, Char, Char) Método

Definição

Indica se um carácter está dentro do intervalo inclusivo especificado.

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

Parâmetros

c
Char

O carácter a avaliar.

minInclusive
Char

O limite inferior, inclusive.

maxInclusive
Char

O limite superior, inclusivo.

Devoluções

true se c estiver dentro do intervalo especificado; caso contrário, false.

Observações

O método não valida que maxInclusive seja maior ou igual a minInclusive. Se maxInclusive for menor que minInclusive, o comportamento é indefinido.

Aplica-se a