KeyComparer.GetHashCode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetHashCode(IKey) |
Returns a hash code for the specified object. |
GetHashCode(IReadOnlyKey) |
Returns a hash code for the specified object. |
GetHashCode(IKey)
Returns a hash code for the specified object.
public int GetHashCode (Microsoft.EntityFrameworkCore.Metadata.IKey obj);
override this.GetHashCode : Microsoft.EntityFrameworkCore.Metadata.IKey -> int
Public Function GetHashCode (obj As IKey) As Integer
Parameters
- obj
- IKey
The for which a hash code is to be returned.
Returns
A hash code for the specified object.
Implements
Applies to
GetHashCode(IReadOnlyKey)
Returns a hash code for the specified object.
public int GetHashCode (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey obj);
override this.GetHashCode : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey -> int
Public Function GetHashCode (obj As IReadOnlyKey) As Integer
Parameters
- obj
- IReadOnlyKey
The for which a hash code is to be returned.
Returns
A hash code for the specified object.
Implements
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for