Yield return & using IDisposable

English Version “Yield return” ist ein mächtiges und praktisches Statement, wenn man schnell und einfach eine iterierbare Liste erzeugen möchte, ohne erst großartig ein Array oder eine List anzulegen: using System; using System.Collections.Generic; using System.Drawing; class Program { static void Main() { var colors = Rainbow; Console.WriteLine(“colors.GetType(): {0}”, colors.GetType()); Console.WriteLine(); foreach (Color color in colors)…