public OrderConstraint(Type typeA, ExecutionRelation relation, Type typeB, ConstraintPriority priority) { if (relation == ExecutionRelation.Before) { this.FirstType = typeA; this.LastType = typeB; } else { this.FirstType = typeB; this.LastType = typeA; } this.Priority = priority; }
public ExecutionOrderAttribute(ExecutionRelation relation, Type anchor) { this.anchor = anchor; this.relation = relation; }