Show / Hide Table of Contents

Class ManifestDigestPartialEqualityComparer<T>

Uses PartialEquals(ManifestDigest) to compare ImplementationBases.

Inheritance
Object
ManifestDigestPartialEqualityComparer<T>
Implements
IEqualityComparer<T>
Namespace: ZeroInstall.Model
Assembly: ZeroInstall.Model.dll
Syntax
public sealed class ManifestDigestPartialEqualityComparer<T> : Object where T : ImplementationBase
Type Parameters
Name Description
T

Fields

Instance

A singleton instance of the comparer.

Declaration
public static readonly ManifestDigestPartialEqualityComparer<T> Instance
Field Value
Type Description
ManifestDigestPartialEqualityComparer<T>

Methods

Equals(T, T)

Declaration
public bool Equals(T x, T y)
Parameters
Type Name Description
T x
T y
Returns
Type Description
Boolean

GetHashCode(T)

Always returns 0. The concept of hashing is not applicable to partial equality.

Declaration
public int GetHashCode(T obj)
Parameters
Type Name Description
T obj
Returns
Type Description
Int32

Implements

System.Collections.Generic.IEqualityComparer<T>
In This Article
Back to top Copyright Bastian Eicher et al