Method ValueOr
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
ValueOr(T)
Gets the value of the Optional<T> or a specified value, if the Optional<T> has no value.
public T ValueOr(T other)
Parameters
other
TThe value to return if this has no value.
Returns
- T
Either the value of the Optional<T> if present or the provided value.