Hi guys, its my test ;d

var names = new List<string>() { "John", "Tom", "Peter" };
foreach (string name in names)
{
    if (name == "Tom")
    {
        break;
    }
    Console.WriteLine(name);
}
Console.WriteLine("OK");

 


Take that

Comments

Post a comment