public static string ToExtension(this Format f) { switch (f) { case Format.Mkv: return "mkv"; case Format.Mp4: return "mp4"; } return String.Empty; }