Table of Contents

Method PreCondition

Namespace
Mapperion
Assembly
Mapperion.dll

PreCondition(Expression<Func<TSource, bool>>)

Skips the member entirely, before its source is even read, when the predicate does not hold. Useful when reading the source is expensive or would throw.

void PreCondition(Expression<Func<TSource, bool>> condition)

Parameters

condition Expression<Func<TSource, bool>>

The predicate evaluated against the source.