Esempio n. 1
0
        public static BlackjackManager FromContext(BlackjackContext context)
        {
            BlackjackManager manager = new BlackjackManager();

            manager.Bet       = context.Bet;
            manager.MessageId = context.MessageId;
            manager._deck     = context.Deck;
            manager._hands    = context.Hands;
            return(manager);
        }
Esempio n. 2
0
        public static BlackjackManager FromContext(BlackjackContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException();
            }

            BlackjackManager manager = new BlackjackManager();

            manager.Bet       = context.Bet;
            manager.MessageId = context.MessageId;
            manager._deck     = context.Deck;
            manager._hands    = context.Hands;
            return(manager);
        }