Table of Contents

Method Equals

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

Equals(object?)

Gives true when the given object is also a Unit.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare against.

Returns

bool

true if obj is a Unit , and false otherwise.

Remarks

There is only one value of this type, so any two instances are equal.

Equals(Unit)

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

public bool Equals(Unit other)

Parameters

other Unit

An object to compare with this object.

Returns

bool

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