/// <summary> /// Initializes a new instance of the <see cref="HtmlBuilder{TModel, TProperty}" /> class. /// </summary> /// <param name="helper">The helper.</param> public BaseHtmlBuilder(HtmlHelper <TModel> helper) { this.helper = helper; this.htmlAttributes = new HtmlAttributeDictionary(); this.hiddenIfConditionKeys = new List <string>(); this.disabledIfConditionKeys = new List <string>(); }
/// <summary> /// Imports the attributes. /// </summary> /// <param name="attributes">The attributes.</param> /// <returns></returns> internal TBuilder ImportAttributes(HtmlAttributeDictionary attributes) { this.htmlAttributes = attributes; return((TBuilder)this); }