Click or drag to resize

BaseNodeGetHashCode Method

Gets a Hash Code for a Node.

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.BaseNode.GetHashCode"]

Remarks

Implemented by getting the Hash Code of the result of ToString for a Node prefixed with its Node Type, this is pre-computed for efficiency when a Node is created since Nodes are immutable. See remarks on ToString for more detail.

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

See Also