Last active
January 29, 2017 03:03
-
-
Save scottaddie/1fe697aadc2d4e0f4bbe192bc8b0c025 to your computer and use it in GitHub Desktop.
CardTagHelper HtmlTargetElement attribute "AND" operation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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