static void PlayWithGeneric() { var g1 = new glm.Client(); var g2 = new glm.Client(); foreach (var item in glm.Client.Clients.Peoples) { Console.WriteLine("{0}\n{1}", item.Name, item.Title); } }
static void PlayWithGeneric() { var c1 = new glm.Client(); var c2 = new glm.Client(); // var clientele = new glm.Client(); foreach (var item in glm.Client.Clients.Peoples) { Console.WriteLine("{0}\n{1}", item.Name, item.Title); //the {0}.. is place holder for the first item, new line, holder for second item } }