public void TestBuild() { var cards = CardFactory.Build(); for (var i = 0; i < cards.Length; i++) { System.Diagnostics.Debug.Write(cards[i].ToString()); } }
protected Card[] CardSource(int num) { var cards = (from card in (from card in CardFactory.Build().Take(num) select card) orderby card.Num ascending, card.IsLarge descending select card).ToArray(); WriteLine(cards); return(cards); }