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!

LocalToken.GetHashCode

Generates a hash code for this LocalToken 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

Returns the hash code for this instance.

Remarks

The hash code is generated by multiplying the index of this LocalToken by the sync block index of the Type object that represents the type of this local variable. The index of the LocalToken is assigned by the MethodBuilder that declared it. The sync block index is obtained via Object.Equals. The hash code is therefore not necessarily unique, even for the local variables of a single MethodBuilder.

See Also

LocalToken Structure | LocalToken Members | System.Reflection.Emit Namespace