ToDictionary object

.ToDictionary()

Intended to take a HtmlAttributes type and convert it into a Dictionary.

Method

public static IDictionary<string, object> ToDictionary(this object obj)
object obj

The HtmlAttributes value to convert into a Dictionary object.

Example

C#
var attr = htmlAttributes.ToDictionary();