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;
Returns the hash code for this instance.
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.
LocalToken Structure | LocalToken Members | System.Reflection.Emit Namespace