Lingua

IndexComparer Classe

Definizione

Implementazione di IComparer<T> e IEqualityComparer<T> per confrontare IReadOnlyIndex le istanze.

Questo tipo viene in genere usato dai provider di database (e da altre estensioni). In genere non viene usato nel codice dell'applicazione.

[System.Runtime.CompilerServices.Nullable(0)]
public sealed class IndexComparer : System.Collections.Generic.IComparer<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex>, System.Collections.Generic.IEqualityComparer<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex>
public sealed class IndexComparer : System.Collections.Generic.IComparer<Microsoft.EntityFrameworkCore.Metadata.IIndex>, System.Collections.Generic.IEqualityComparer<Microsoft.EntityFrameworkCore.Metadata.IIndex>
public sealed class IndexComparer : System.Collections.Generic.IComparer<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex>, System.Collections.Generic.IEqualityComparer<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex>
[<System.Runtime.CompilerServices.Nullable(0)>]
type IndexComparer = class
    interface IEqualityComparer<IReadOnlyIndex>
    interface IComparer<IReadOnlyIndex>
type IndexComparer = class
    interface IEqualityComparer<IIndex>
    interface IComparer<IIndex>
type IndexComparer = class
    interface IEqualityComparer<IReadOnlyIndex>
    interface IComparer<IReadOnlyIndex>
Public NotInheritable Class IndexComparer
Implements IComparer(Of IReadOnlyIndex), IEqualityComparer(Of IReadOnlyIndex)
Public NotInheritable Class IndexComparer
Implements IComparer(Of IIndex), IEqualityComparer(Of IIndex)
Ereditarietà
IndexComparer
Attributi
Implementazioni

Commenti

Per altre informazioni ed esempi, vedere Implementazione di provider di database ed estensioni .

Campi

Nome Descrizione
Instance

Istanza singleton dell'operatore di confronto da usare.

Metodi

Nome Descrizione
Compare(IIndex, IIndex)

Confronta due oggetti e restituisce un valore che indica se uno è minore, uguale o maggiore dell'altro.

Compare(IReadOnlyIndex, IReadOnlyIndex)

Confronta due oggetti e restituisce un valore che indica se uno è minore, uguale o maggiore dell'altro.

Equals(IIndex, IIndex)

Determina se gli oggetti specificati sono uguali.

Equals(IReadOnlyIndex, IReadOnlyIndex)

Determina se gli oggetti specificati sono uguali.

GetHashCode(IIndex)

Restituisce un codice hash per l'oggetto specificato.

GetHashCode(IReadOnlyIndex)

Restituisce un codice hash per l'oggetto specificato.

Si applica a