Exemplo n.º 1
0
 public FileType(string name, string extension, string mediaType, FileTypeMatcher matcher)
 {
     Name             = name;
     Extension        = extension;
     MediaType        = mediaType;
     _FileTypeMatcher = matcher;
 }
Exemplo n.º 2
0
        public RangeFileTypeMatcher(FileTypeMatcher matcher, int maximumStartLocation)
        {
            if (matcher is RangeFileTypeMatcher)
            {
                throw new ArgumentException("matcher cannot be of type RangeFileTypeMatcher");
            }

            _matcher = matcher;
            _maximumStartLocation = maximumStartLocation;
        }