Moniker.GetHashCode Method
Uses the ID to generate the HashCode so that 2 Moniker's with the same ID's will return the same HashCode. Omitting this violates rule: OverrideGetHashCodeOnOverridingEquals.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
Public Overrides Function GetHashCode As Integer
public override int GetHashCode()
public:
virtual int GetHashCode() override
abstract GetHashCode : unit -> int
override GetHashCode : unit -> int
public override function GetHashCode() : int
Return Value
Type: Int32
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.