예제 #1
0
        public bool HasIgnoredFormat(string extension)
        {
            if (Enum.TryParse <WoWFormat>(extension, true, out var format))
            {
                return(IgnoredFormats.Contains(format));
            }

            return(!IncludeUnsupportedAndInvalidFiles);
        }
예제 #2
0
        public bool HasIgnoredFormat(WoWFormat format)
        {
            bool ignored = IgnoredFormats.Contains(format);

            if (!IncludeUnsupportedAndInvalidFiles)
            {
                ignored = format == WoWFormat.Unsupported;
            }

            return(ignored);
        }