Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
CardTagHelper HtmlTargetElement attribute "AND" operation
[HtmlTargetElement("card", ParentTag = "hand", Attributes = nameof(Suit) + "," + nameof(Rank), TagStructure = TagStructure.NormalOrSelfClosing)]
public class CardTagHelper : TagHelper
public string Rank { get; set; }
public string Suit { get; set; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment