using System; using System.Collections; namespace CS2026 { public class Name : IEnumerable { public IEnumerator GetEnumerator() { yield return "Introduction"; yield return "to"; yield return "C#"; } } public class Tester { public static void Main() { Name className = new Name(); foreach (string segment in className) { Console.WriteLine(segment); } } } }