Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.