Skip to content

Instantly share code, notes, and snippets.

@scottaddie
Last active January 29, 2017 03:03
Show Gist options
  • Save scottaddie/1fe697aadc2d4e0f4bbe192bc8b0c025 to your computer and use it in GitHub Desktop.
Save scottaddie/1fe697aadc2d4e0f4bbe192bc8b0c025 to your computer and use it in GitHub Desktop.
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