Struct Single<T>
- Namespace
- Rinku
- Assembly
- Rinku.dll
Requires exactly one result. No result and a second result both throw.
public readonly struct Single<T> : IWrapping<Single<T>, T>
Type Parameters
T
- Implements
- Inherited Members
- Extension Methods
Constructors
Single(T)
Requires exactly one result. No result and a second result both throw.
public Single(T value)
Parameters
valueT
Fields
Value
The single value.
public readonly T Value
Field Value
- T
Methods
Make(T)
Creates the wrapper from a value returned by a query.
public static Single<T> Make(T val)
Parameters
valT
Returns
- Single<T>
Operators
implicit operator T(Single<T>)
public static implicit operator T(Single<T> val)
Parameters
valSingle<T>
Returns
- T
implicit operator Single<T>(T)
public static implicit operator Single<T>(T val)
Parameters
valT
Returns
- Single<T>