PropertyEqualityComparer<T> Class
Compares instances of data contracts based on specified properties, which can be either key or comparable properties.
Namespace
DbSyncKit.DB.Comparer
Base Types
  • IEqualityComparer<T>
graph BT Type-->Base0["IEqualityComparer<T>"] Type["PropertyEqualityComparer<T>"] class Type type-node

Syntax

public class PropertyEqualityComparer<T> : IEqualityComparer<T>

Type Parameters

Name Description
T

Constructors

Name Summary
PropertyEqualityComparer(PropertyInfo[]) Initializes a new instance of the PropertyEqualityComparer<T> class.

Fields

Name Field Type Constant Value Summary
properties PropertyInfo[]
Gets the array of System.Reflection.PropertyInfo objects representing properties used for equality comparison. These properties can serve as either key or comparable properties.

Methods

Name Return Value Summary
Equals(T, T) bool
Determines whether two instances of the data contract are equal based on the specified properties.
GetHashCode(T) int
Returns a hash code for the specified instance of the data contract based on the specified properties.