Class SingleTypeParser<TOpt, T>
Requires exactly one result.
public sealed class SingleTypeParser<TOpt, T> : BaseSingleTypeParser<TOpt, T>, ITypeParser<TOpt>, ITypeParser, IDisposable where TOpt : struct, IWrapping<TOpt, T>
Type Parameters
TOptT
- Inheritance
-
BaseTypeParser<TOpt>BaseSingleTypeParser<TOpt, T>SingleTypeParser<TOpt, T>
- Implements
-
ITypeParser<TOpt>
- Inherited Members
- Extension Methods
Constructors
SingleTypeParser(ITypeParser<T>)
Requires exactly one result.
public SingleTypeParser(ITypeParser<T> elementParser)
Parameters
elementParserITypeParser<T>
Methods
Default()
The value to return when the result has no row, an empty collection or optional, for instance.
public override TOpt Default()
Returns
- TOpt