PropertyComparer PropertyComparer Class

Syntax

Declaration

public class PropertyComparer : IEqualityComparer<IProperty>, IComparer<IProperty>Public Class PropertyComparer
    Implements IEqualityComparer(Of IProperty), IComparer(Of IProperty)

Inheritance Hierarchy

  • System.Object
    System.Object
  • PropertyComparer
    PropertyComparer

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

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

    Parameters

    • compareAnnotations
      System.Boolean
      System.Boolean

Methods

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

    Parameters

    Returns

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

    Parameters

    Returns

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

    Parameters

    Returns

    • System.Int32
      System.Int32

Details

Assembly

Microsoft.EntityFrameworkCore.Specification.Tests.dll