ChameleonForms/HtmlAttributes.cs
/// <summary>
/// Adds or updates a set of HTML attributes using anonymous objects to express the attributes.
/// </summary>
/// <param name="attributes">An anonymous object of attributes</param>
/// <returns>The <see cref="HtmlAttributes"/> attribute to allow for method chaining</returns>
Adds or updates a set of HTML attributes using anonymous objects to express the attributes.
Adds or updates a set of HTML attributes using anonymous objects to express the attributes .
public HtmlAttributes Attrs(object attributes)
        {
            var attrs = HtmlHelper.AnonymousObjectToHtmlAttributes(attributes)
                .ToDictionary(d => d.Key.ToLower(), d => d.Value);
            _tagBuilder.MergeAttributes(attrs, true);
            return this;
        }
public HtmlAttributes Attrs ( object attributes ) { var attrs = HtmlHelper . AnonymousObjectToHtmlAttributes ( attributes ) . ToDictionary ( d => d . Key . ToLower ( ) , d => d . Value ) ; _tagBuilder . MergeAttributes ( attrs , true ) ; return this ; }
Adds or updates a set of HTML attributes using anonymous objects to express the attributes.
Adds or updates a set of HTML attributes using anonymous objects to express the attributes .
The  attribute to allow for method chaining
The attribute to allow for method chaining
attributes
object
An anonymous object of attributes
An anonymous object of attributes