Method ValueOrDefault
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
ValueOrDefault()
Gets the value of the Optional<T> or the default value for T
, if the
Optional<T> has no value.
public T ValueOrDefault()
Returns
- T
Either the value of the Optional<T> if present or the type's default value.