CollectionExtensions.AsHtmlAttributes Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

AsHtmlAttributes(NameValueCollection, Boolean)

Converts a NameValueCollection to a html attribute string.

public static string AsHtmlAttributes(this NameValueCollection input, bool lowerCaseKeys = false)

Parameters

input
System.Collections.Specialized.NameValueCollection
lowerCaseKeys
System.Boolean

Returns

System.String

A string, or null if the input list is null or empty.