Exemple #1
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = XEval != null ? XEval.GetHashCode() : 0;
         hashCode = (hashCode * 397) ^ (YEval != null ? YEval.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (WidthEval != null ? WidthEval.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HeightEval != null ? HeightEval.GetHashCode() : 0);
         return hashCode;
     }
 }
Exemple #2
0
 public override FilterValueSetParam GetFilterValue(
     MatchedEventMap matchedEvents,
     ExprEvaluatorContext exprEvaluatorContext,
     StatementContextFilterEvalEnv filterEvalEnv)
 {
     var x = XEval.GetFilterValueDouble(matchedEvents, exprEvaluatorContext, filterEvalEnv);
     var y = YEval.GetFilterValueDouble(matchedEvents, exprEvaluatorContext, filterEvalEnv);
     var width = WidthEval.GetFilterValueDouble(matchedEvents, exprEvaluatorContext, filterEvalEnv);
     var height = HeightEval.GetFilterValueDouble(matchedEvents, exprEvaluatorContext, filterEvalEnv);
     var rectangle = new XYWHRectangle(x, y, width, height);
     var lookupable = lkupable.Make(matchedEvents, exprEvaluatorContext);
     return new FilterValueSetParamImpl(lookupable, FilterOperator, rectangle);
 }