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
KnowledgeGraphIndexRelatedNodeThe first object of type
T
to compare.y
KnowledgeGraphIndexRelatedNodeThe second object of type
T
to compare.
Returns
GetHashCode(KnowledgeGraphIndexRelatedNode)
Returns a hash code for the specified object.
public int GetHashCode(KnowledgeGraphIndexRelatedNode obj)
Parameters
obj
KnowledgeGraphIndexRelatedNodeThe 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 andobj
is null.