StringSegmentComparer.Compare(StringSegment, StringSegment) Método

Definição

Compara dois objetos e retorna um valor que indica se um é menor, igual ou maior do que o outro.Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

public:
 virtual int Compare(Microsoft::Extensions::Primitives::StringSegment x, Microsoft::Extensions::Primitives::StringSegment y);
public int Compare (Microsoft.Extensions.Primitives.StringSegment x, Microsoft.Extensions.Primitives.StringSegment y);
abstract member Compare : Microsoft.Extensions.Primitives.StringSegment * Microsoft.Extensions.Primitives.StringSegment -> int
override this.Compare : Microsoft.Extensions.Primitives.StringSegment * Microsoft.Extensions.Primitives.StringSegment -> int
Public Function Compare (x As StringSegment, y As StringSegment) As Integer

Parâmetros

x
StringSegment

O primeiro objeto a ser comparado.The first object to compare.

y
StringSegment

O segundo objeto a ser comparado.The second object to compare.

Retornos

Int32

Um inteiro com sinal que indica os valores relativos de x e y.A signed integer that indicates the relative values of x and y.

Implementações

Comentários

O valor retornado por esse método pode ter os seguintes significados:The value returned by this method can have the following meanings:

ValorValue SignificadoMeaning
Menor que zeroLess than zero x é menor que y.x is less than y.
ZeroZero x é igual a y.x equals y.
Maior que zeroGreater than zero x é maior que y.x is greater than y.

Aplica-se a