Skip to content

Instantly share code, notes, and snippets.

@scottaddie
Last active January 30, 2017 15:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save scottaddie/458c9083b17f4b32327f2183bc1dd31e to your computer and use it in GitHub Desktop.
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