Author: Douglas Williams Created: 2021-05-09 Modified: 2021-09-12 Tags: C#, .NET
Many experienced C# & .NET developers have, at some point in their lives, attended an interview where they were asked a question whose answer is trickier than the interviewer assumes. The below is a compilation of such questions, their typical expected answers, and the actual correct answers.
Question : Which interface does a type need to implement to be used in a foreach statement?