/// <summary> /// /// </summary> public LengthValidation.Builder LengthValidation(LengthValidation.Config config) { #if MVC return(new LengthValidation.Builder(new LengthValidation(config) { ViewContext = this.HtmlHelper != null ? this.HtmlHelper.ViewContext : null })); #else return(new LengthValidation.Builder(new LengthValidation(config))); #endif }
/// <summary> /// /// </summary> public Builder(LengthValidation.Config config) : base(new LengthValidation(config)) { }
/// <summary> /// /// </summary> public LengthValidation.Builder LengthValidation(LengthValidation.Config config) { return(new LengthValidation.Builder(new LengthValidation(config))); }