protected virtual bool IsInputCheckbox(TagHelperContext context, TagHelperOutput output, TagHelperAttributeList attributes) { return(attributes.Any(a => a.Value != null && a.Name == "type" && a.Value.ToString() == "checkbox")); }