public static string GetDisplayString(this CompilerErrorCollection collection) { return(string.Join( Environment.NewLine, collection.AsEnumerable().Select(error => error.ToString()))); }