/// <summary>判断FormatName是否为图片 /// </summary> public static bool IsImageFormatName(string formatName) { if (formatName.IsNullOrWhiteSpace()) { return(false); } return(Infos.Any(x => string.Equals(x.FormatName, formatName, StringComparison.OrdinalIgnoreCase))); }