get out of foreach statement c#

C#
foreach (string s in sList)
{
    if (s.equals("ok"))
    {
        break; // get out of the loop
    }
}
Source

Also in C#: