Table of Contents

Class BaseEquatable<T>

Namespace
Garyon.Objects
Assembly
Garyon.dll

A base implementation of IEquatable<T>, overriding the Equals(object) method, and implementing the interface, with focus on comparing the non-null instance via EqualsCore(T).

public abstract class BaseEquatable<T> : IEquatable<T>

Type Parameters

T
Inheritance
BaseEquatable<T>
Implements
Derived
Inherited Members
Extension Methods

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(T?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(T? other)

Parameters

other T

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

EqualsCore(T)

protected abstract bool EqualsCore(T other)

Parameters

other T

Returns

bool