Method Some
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
Some<T>(T)
Creates a new Optional<T> with specified value and valid state.
public static Optional<T> Some<T>(T value)
Parameters
value
TValue to populate the optional with.
Returns
- Optional<T>
Created optional.
Type Parameters
T
Type of the value.