Summary
Compares two objects using reference equality.
- Namespace
- Avalonia
- Containing Type
- AvaloniaObject
Syntax
public override sealed bool Equals(object obj)
Remarks
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.
Parameters
Name | Type | Description |
---|---|---|
obj | object | The object to compare. |
Return Value
Type | Description |
---|---|
bool |