public static List<string> GetSupportedExtensions(bool addDot = false) { if (addDot) return Enum.GetNames(typeof(SupportedExtensions)).Where(t => t != "UNKNOWN").Select(g => "." + g).ToList(); else return Enum.GetNames(typeof(SupportedExtensions)).Where(t => t != "UNKNOWN").ToList(); }