Method Condition
- Namespace
- Mapperion
- Assembly
- Mapperion.dll
Condition(Expression<Func<TSource, bool>>)
Assigns the member only when the predicate holds. The source value is read first, so a condition costs the read even when it turns out false; use PreCondition(Expression<Func<TSource, bool>>) when the read itself is what you want to avoid.
void Condition(Expression<Func<TSource, bool>> condition)
Parameters
conditionExpression<Func<TSource, bool>>The predicate evaluated against the source.