Skip to content

Instantly share code, notes, and snippets.

@scottaddie
Last active January 30, 2017 15:46
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