/// <summary> /// 转换为对应的ValidBox类型 /// </summary> /// <returns></returns> public override ValidBox ToValidBox() { return(ValidBox.New(this.ValidType, this.ErrorMessage, this.Min, this.Max)); }
/// <summary> /// 生成验证框对象 /// </summary> /// <returns></returns> public ValidBox ToValidBox() { return(ValidBox.New("length", this.ErrorMessage, this.MinimumLength, this.MaximumLength)); }
/// <summary> /// 转换为对应的ValidBox类型 /// </summary> /// <returns></returns> public override ValidBox ToValidBox() { return(ValidBox.New(this.ValidType, this.ErrorMessage, this.TargetId)); }
/// <summary> /// 转换为对应的ValidBox类型 /// </summary> /// <returns></returns> public override ValidBox ToValidBox() { return(ValidBox.New(this.ValidType, this.ErrorMessage, this.RegexPattern)); }
/// <summary> /// 生成验证框 /// </summary> /// <returns></returns> public override ValidBox ToValidBox() { var parameters = new object[] { this.Url }.Concat(this.TargetId).ToArray(); return(ValidBox.New(this.ValidType, this.ErrorMessage, parameters)); }