示例#1
0
 /// <summary>
 /// Creates a RelationCondition object.
 /// </summary>
 /// <param name="compareType">Type of the comparison.</param>
 /// <param name="item1">The first condition.</param>
 /// <param name="item2">The second condition.</param>
 /// <returns>The RelationCondition object.</returns>
 public static RelationCondition Create(RelationCompareType compareType, ConditionBase item1, ConditionBase item2)
 {
     return(new RelationCondition(compareType, item1, item2));
 }
示例#2
0
 /// <summary>
 /// Creates a new relation condition with a specified relation type.
 /// </summary>
 /// <param name="compareType">The relation between the first and second condition.</param>
 /// <param name="item1">The first condition.</param>
 /// <param name="item2">The second condition.</param>
 internal RelationCondition(RelationCompareType compareType, ConditionBase item1, ConditionBase item2) : base(null, null)
 {
     this.compareType = compareType;
     this.item1       = item1;
     this.item2       = item2;
 }