CollectionExtensions.AsHtmlAttributes Method

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

AsHtmlAttributes(NameValueCollection, bool)

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
bool

Returns

string

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