private void UpdateCmdletPageParameter()
 {
     if (this.skiptoken != null)
     {
         IPageableTask pageableTask = (IPageableTask)this.task;
         pageableTask.Page = this.skiptoken.Value / pageableTask.PageSize + 1;
     }
 }
        protected override Expression VisitMethodCall(MethodCallExpression node)
        {
            string name;

            if ((name = node.Method.Name) != null && name == "Take")
            {
                IPageableTask pageableTask = this.task as IPageableTask;
                if (pageableTask != null)
                {
                    pageableTask.PageSize = (int)((ConstantExpression)node.Arguments[1]).Value;
                    this.UpdateCmdletPageParameter();
                }
            }
            return(base.VisitMethodCall(node));
        }