Table of Contents

Method Equals

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Equals(object)

Checks whether this Optional<T> (or its value) are equal to another object.

public override bool Equals(object obj)

Parameters

obj object

Object to compare to.

Returns

bool

Whether the object is equal to this Optional<T> or its value.

Equals(Optional<T>)

Checks whether this Optional<T> is equal to another Optional<T>.

public bool Equals(Optional<T> e)

Parameters

e Optional<T>

Optional<T> to compare to.

Returns

bool

Whether the Optional<T> is equal to this Optional<T>.

Equals(T)

Checks whether the value of this Optional<T> is equal to specified object.

public bool Equals(T e)

Parameters

e T

Object to compare to.

Returns

bool

Whether the object is equal to the value of this Optional<T>.