[HtmlTargetElement("div", Attributes = StylePrefix + "*")] public class SetStyleTagHelper : TagHelper { private const string StylePrefix = "style-"; [HtmlAttributeName("style")] public string CssStyle { get; set; } private IDictionary<string, string> _styleValues; [HtmlAttributeName("", DictionaryAttributePrefix = StylePrefix)] public IDictionary<string, string> StyleValues { get { return _styleValues ?? (_styleValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)); } set { _styleValues = value; } } public override void Process(TagHelperContext context, TagHelperOutput output) { ...