NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ValueType.GetHashCode

Returns the hash code for this instance.

[Visual Basic]
Overrides Public Function GetHashCode() As Integer
[C#]
public override int GetHashCode();
[C++]
public: override int GetHashCode();
[JScript]
public override function GetHashCode() : int;

Return Value

The hash code for this instance. This is the or of the hash code for all of the instance fields, as illustrated by the pseudo-code:

ForEach (instance field in this instance this.X)
{
   if (this.X != null)
    m_hash |= this.X.GetHashCode();
}
return m_hash;

See Also

ValueType Class | ValueType Members | System Namespace