Example of adding a card object to the Cards collection in the context class
// Fetch the context, so that we can add the Card object to the Cards collection | |
var handContext = (HandContext)context.Items[typeof(HandTagHelper)]; | |
handContext.Cards.Add(new Card { Rank = rank, Suit = suit }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment