// // İskambil // Author: Gökhan Erdoğdu // Date: 31/01/2012 01:54 // using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { public enum EnumKartTipleri { Kupa = 1, Maça = 2, Karo = 3, Sinek = 4 } public class IskambilKarti { private EnumKartTipleri _type; private byte _value; private bool _inuse; public IskambilKarti(EnumKartTipleri _type, byte _value) { this._type = _type; this._value = _value; } public EnumKartTipleri Type { get { return _type; } } public byte Value { get { return _value; } } public bool InUse { get { return _inuse; } set { _inuse = value; } } } static void Main(string[] args) { List IskambilDestesi = new List(); // desteyi hazırla for (int i = 1; i < 5; i++) { for (byte k = 1; k < 14; k++) { IskambilDestesi.Add(new IskambilKarti((EnumKartTipleri)(i), k)); } } Console.ReadLine(); } } }