コード例 #1
0
ファイル: Condition.cs プロジェクト: yunsoa/nintegrate
        public override object Clone()
        {
            var rightExpr = (RightExpression == null ? null : (IExpression)RightExpression.Clone());
            var clone     = new Condition((IExpression)LeftExpression.Clone(), Operator, rightExpr)
            {
                _notFlag = _notFlag
            };

            for (var i = 0; i < _linkedConditions.Count; ++i)
            {
                clone._linkedConditionAndOrs.Add(_linkedConditionAndOrs[i]);
                clone._linkedConditions.Add((Condition)_linkedConditions[i].Clone());
            }

            return(clone);
        }
コード例 #2
0
 public override Expression Clone()
 {
     return(new SpatialAnalysisGeometricExpression((GeometryExpression)LeftExpression.Clone(), SpatialAnalysisOperator,
                                                   (GeometryExpression)RightExpression.Clone()));
 }
コード例 #3
0
 public override Expression Clone()
 {
     return(new SpatialAnalysisBufferExpression((GeometryExpression)LeftExpression.Clone(),
                                                (LiteralExpression <double>)RightExpression.Clone()));
 }
コード例 #4
0
 public override Expression Clone()
 {
     return(new SpatialAnalysisDistanceExpression((GeometryExpression)LeftExpression.Clone(),
                                                  (GeometryExpression)RightExpression.Clone()));
 }