Click or drag to resize

TripleGetHashCode Method

Implementation of Hash Codes for Triples.

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public override int GetHashCode()

Return Value

Type: Int32

[Missing <returns> documentation for "M:VDS.RDF.Triple.GetHashCode"]

Remarks

Returns the Hash Code of the Triple which is calculated as the Hash Code of the String formed by concatenating the Hash Codes of its constituent Nodes. This Hash Code is precomputed in the Constructor of a Triple since it will be used a lot (in Triple Equality calculation, Triple Collections etc).

Since Hash Codes are based on a String representation there is no guarantee of uniqueness though the same Triple will always give the same Hash Code (on a given Platform - see the MSDN Documentation for string.GetHashCode() for further details).

See Also