Table of Contents

Class SingleOrDefaultTypeParser<TOpt, T>

Namespace
Rinku.Mapping.Parsers.Defaults
Assembly
Rinku.dll

Returns the default value for no result and refuses a second result.

public sealed class SingleOrDefaultTypeParser<TOpt, T> : BaseSingleTypeParser<TOpt, T>, ITypeParser<TOpt>, ITypeParser, IDisposable where TOpt : struct, IWrapping<TOpt, T>

Type Parameters

TOpt
T
Inheritance
SingleOrDefaultTypeParser<TOpt, T>
Implements
Inherited Members
Extension Methods

Constructors

SingleOrDefaultTypeParser(ITypeParser<T>)

Returns the default value for no result and refuses a second result.

public SingleOrDefaultTypeParser(ITypeParser<T> elementParser)

Parameters

elementParser ITypeParser<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