Click or drag to resize

IValueExpressionAttributeEvaluationOrder Property

Gets or sets the numeric evaluation order for this expression. Defaults to zero.

Namespace: GSF.ComponentModel
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.205-beta+5ef4169f3b1079d8b163dd363614f656bd140924
Syntax
int EvaluationOrder { get; set; }
View Source

Property Value

Int32
Remarks

This is useful for providing an order of operations to evaluations of ValueExpressionAttributeBase attributes where one expression may be dependent on another. Note that properties are normally evaluated in the order in which they are defined in the class, but this is not guaranteed, using this attribute allows the order of evaluation to be changed.

When no EvaluationOrder is specified, the sort order for a property will be zero. Properties will be ordered numerically based on this value.

For any Expression value that references the this keyword, a positive evaluation order will be required.

See CreateInstanceTExpressionScope(IEnumerablePropertyInfo, TypeRegistry).

See Also