Method Equals
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
Equals(object)
Checks whether this Optional<T> (or its value) are equal to another object.
public override bool Equals(object obj)
Parameters
obj
objectObject 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
TObject to compare to.
Returns
- bool
Whether the object is equal to the value of this Optional<T>.