CastSpecification<T, TCast>.

CastSpecification(ISpecification<TCast>) Constructor

Summary

Creates "converted" Specification.

Syntax

[PublicAPI]
public CastSpecification(ISpecification<TCast> specification)

Attributes

Type Description
PublicAPI

Parameters

Name Type Description
specification ISpecification<TCast> Specification to convert.

Return Value

Type Description
void

Exceptions

Type Description
System.ArgumentNullException Thrown when specification is null.
System.InvalidOperationException Thrown when there is no conversion between T and TCast.
GitHub