Table of Contents

Interface ICondition

Namespace
DynaSharp.Expressions
Assembly
DynaSharp.dll

A condition as a value, which is what If and Filter take: Order.Attrs.Status.Eq(OrderStatus.Open), Attr("total").Gt(100).

public interface ICondition
Extension Methods

Remarks

.And(), .Or() and .Negate() combine conditions into a new struct whose type reflects its parts, so the type changes with every step. A condition that is kept in a field or assembled at run time goes through Condition, whose type stays the same.

Methods

Render(ref ExpressionSink)

Writes the condition as expression text. Attribute names and values go through Path(string) and DynaSharp.Expressions.ExpressionSink.Value<T, TConverter>(T), which turn them into placeholders.

void Render(ref ExpressionSink sink)

Parameters

sink ExpressionSink

Where the text goes.