CastSpecification<T, TCast>.

GetExpression() Method

Summary

Gets typed lambda Linq Expression with candidate object verification.

Syntax

[PublicAPI]
public Expression<Func<T, bool>> GetExpression()

Attributes

Type Description
PublicAPI

Return Value

Type Description
Expression<Func<T, bool>> Strongly typed lambda Linq Expression.

Exceptions

Type Description
System.InvalidCastException Thrown when cannot cast candidate from T to TCast
GitHub