Table of Contents

Class KnowledgeGraphIndexRelatedNodeComparer

Namespace
FoundationaLLM.Context.Models
Assembly
FoundationaLLM.Context.dll

Equality comparer for KnowledgeGraphIndexRelatedNode based on the UniqueId of RelatedEntity.

public class KnowledgeGraphIndexRelatedNodeComparer : IEqualityComparer<KnowledgeGraphIndexRelatedNode>
Inheritance
KnowledgeGraphIndexRelatedNodeComparer
Implements
Inherited Members
Extension Methods

Methods

Equals(KnowledgeGraphIndexRelatedNode?, KnowledgeGraphIndexRelatedNode?)

Determines whether the specified objects are equal.

public bool Equals(KnowledgeGraphIndexRelatedNode? x, KnowledgeGraphIndexRelatedNode? y)

Parameters

x KnowledgeGraphIndexRelatedNode

The first object of type T to compare.

y KnowledgeGraphIndexRelatedNode

The second object of type T to compare.

Returns

bool

true if the specified objects are equal; otherwise, false.

GetHashCode(KnowledgeGraphIndexRelatedNode)

Returns a hash code for the specified object.

public int GetHashCode(KnowledgeGraphIndexRelatedNode obj)

Parameters

obj KnowledgeGraphIndexRelatedNode

The object for which a hash code is to be returned.

Returns

int

A hash code for the specified object.

Exceptions

ArgumentNullException

The type of obj is a reference type and obj is null.