public bool HasIgnoredFormat(string extension) { if (Enum.TryParse <WoWFormat>(extension, true, out var format)) { return(IgnoredFormats.Contains(format)); } return(!IncludeUnsupportedAndInvalidFiles); }
public bool HasIgnoredFormat(WoWFormat format) { bool ignored = IgnoredFormats.Contains(format); if (!IncludeUnsupportedAndInvalidFiles) { ignored = format == WoWFormat.Unsupported; } return(ignored); }