GetHashCode Method
Gets the hash code for the object.
Definition
Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public override sealed int GetHashCode()
Public Overrides NotOverridable Function GetHashCode As Integer
abstract GetHashCode : unit -> int
override GetHashCode : unit -> int
Return Value
Int32Remarks
Overriding Equals and GetHashCode on an AvaloniaObject is disallowed for two reasons: - AvaloniaObjects are by their nature mutable - The presence of attached properties means that the semantics of equality are difficult to define See https://github.com/AvaloniaUI/Avalonia/pull/2747 for the discussion that prompted this.