KeyComparer KeyComparer Class

Syntax

Declaration

public class KeyComparer : IEqualityComparer<IKey>, IComparer<IKey>Public Class KeyComparer
    Implements IEqualityComparer(Of IKey), IComparer(Of IKey)

Inheritance Hierarchy

  • System.Object
    System.Object
  • KeyComparer
    KeyComparer

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

Methods summary

Constructors

  • KeyComparer(Boolean)
    KeyComparer(Boolean)
    public KeyComparer(bool compareAnnotations = true)Public Sub New(compareAnnotations As Boolean = True)

    Parameters

    • compareAnnotations
      System.Boolean
      System.Boolean

Methods

  • Compare(IKey, IKey)
    Compare(IKey, IKey)
    public int Compare(IKey x, IKey y)Public Function Compare(x As IKey, y As IKey) As Integer

    Parameters

    Returns

    • System.Int32
      System.Int32
  • Equals(IKey, IKey)
    Equals(IKey, IKey)
    public bool Equals(IKey x, IKey y)Public Function Equals(x As IKey, y As IKey) As Boolean

    Parameters

    Returns

    • System.Boolean
      System.Boolean
  • GetHashCode(IKey)
    GetHashCode(IKey)
    public int GetHashCode(IKey obj)Public Function GetHashCode(obj As IKey) As Integer

    Parameters

    Returns

    • System.Int32
      System.Int32

Details

Assembly

Microsoft.EntityFrameworkCore.Specification.Tests.dll