private void ReloadFromDiscard() { Object obj = new Object(); lock (obj) { Card[] discardCards = new Card[Discard.Count()]; Discard.CopyTo(discardCards, 0); foreach (var card in discardCards) { GameDeck.Enqueue(card); } Discard.Clear(); } }