Class Optional
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
Helper methods for instantiating an Optional<T>.
public static class Optional
- Inheritance
-
Optional
- Inherited Members
Remarks
This class only serves to provide Some<T>(T) and None as utility that supports type inference.
Fields
- None
Provided for easy creation of empty Optional<T>s.
Methods
- Some<T>(T)
Creates a new Optional<T> with specified value and valid state.