public override SqlNode Clone() { return(new BetweenExpression() { Expression = Expression.Clone() as ScalarExpression, From = From.Clone() as ScalarExpression, To = To.Clone() as ScalarExpression }); }
public object Clone() { var cc = new PathFromAndTo(); cc.From = (PathCredentials )From.Clone(); cc.To = (PathCredentials)To.Clone(); if (ScheduleTask != null) { cc.ScheduleTask = (ScheduleTime)ScheduleTask.Clone(); } cc.RoboCopy_Options = RoboCopy_Options; cc.ExtendedAttributes = ExtendedAttributes; cc.IsEnabled = IsEnabled; return(cc); }