[c#] How do I exit a foreach loop in C#?