Class KnowledgeGraphIndexRelatedNodeComparer
- Namespace
- FoundationaLLM.Context.Models
- Assembly
- FoundationaLLM.ContextEngine.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
xKnowledgeGraphIndexRelatedNodeThe first object of type
Tto compare.yKnowledgeGraphIndexRelatedNodeThe second object of type
Tto compare.
Returns
GetHashCode(KnowledgeGraphIndexRelatedNode)
Returns a hash code for the specified object.
public int GetHashCode(KnowledgeGraphIndexRelatedNode obj)
Parameters
objKnowledgeGraphIndexRelatedNodeThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.