Show / Hide Table of Contents

Class SetDistinctnessComparer

Comparer for checking whether sets are distinct, check may either be using the entire set or by using only a subset of variables.

Inheritance
object
SetDistinctnessComparer
Implements
IEqualityComparer<ISet>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Query.Algebra
Assembly: dotNetRdf.dll
Syntax
public class SetDistinctnessComparer : IEqualityComparer<ISet>

Constructors

| Edit this page View Source

SetDistinctnessComparer()

Creates a new comparer that compares across all variables.

Declaration
public SetDistinctnessComparer()
| Edit this page View Source

SetDistinctnessComparer(IEnumerable<string>)

Creates a new comparer that compare only on the specific variables.

Declaration
public SetDistinctnessComparer(IEnumerable<string> variables)
Parameters
Type Name Description
IEnumerable<string> variables

Variables.

Methods

| Edit this page View Source

Equals(ISet, ISet)

Determines whether the given sets are equal.

Declaration
public bool Equals(ISet x, ISet y)
Parameters
Type Name Description
ISet x

First Set.

ISet y

Second Set.

Returns
Type Description
bool

True if sets are equal, false otherwise.

| Edit this page View Source

GetHashCode(ISet)

Gets the hash code for a set.

Declaration
public int GetHashCode(ISet obj)
Parameters
Type Name Description
ISet obj

Set.

Returns
Type Description
int

Hash Code.

Implements

IEqualityComparer<T>

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • SetDistinctnessComparer()
    • SetDistinctnessComparer(IEnumerable<string>)
  • Methods
    • Equals(ISet, ISet)
    • GetHashCode(ISet)
  • Implements
  • Extension Methods
Back to top Generated by DocFX