static void Main(string[] args) { ElectronicQueue <Person> people = new ElectronicQueue <Person>(); people.Enqueue(new Person("dwdwdwd", "wdwdw", 11)); people.Enqueue(new Person("wef", "kl;k", 21)); people.Enqueue(new Person("wfwf", "ff", 31)); people.Dequeue(); people.Dequeue(); people.Dequeue(); }
static void Main(string[] args) { ElectronicQueue <Person> eq = new ElectronicQueue <Person>(); eq.Enqueue(new Person() { Name = "Pasha", Surname = "Shulmin", Age = 18 }); eq.Enqueue(new Person() { Name = "Maria", Surname = "Gordenko", Age = 20 }); foreach (Person p in eq.queue) { Console.WriteLine(p); } }