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