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
System.Object
SetDistinctnessComparer
Implements
System.Collections.Generic.IEqualityComparer<ISet>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Query.Algebra
Assembly: dotNetRDF.dll
Syntax
public class SetDistinctnessComparer : IEqualityComparer<ISet>

Constructors

| Improve this Doc View Source

SetDistinctnessComparer()

Creates a new comparer that compares across all variables.
Declaration
public SetDistinctnessComparer()
| Improve this Doc 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
System.Collections.Generic.IEnumerable<System.String> variables Variables.

Methods

| Improve this Doc 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
System.Boolean True if sets are equal, false otherwise.
| Improve this Doc 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
System.Int32 Hash Code.

Implements

System.Collections.Generic.IEqualityComparer<T>

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • 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