public static void AddLegacyFilter(this FileDialog dialog, params string[] filters) { foreach (var filter in filters) { dialog.AddLegacyFilter(filter); } }