Skip to content

Instantly share code, notes, and snippets.

Embed
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
You can’t perform that action at this time.