public FileType(string name, string extension, string mediaType, FileTypeMatcher matcher) { Name = name; Extension = extension; MediaType = mediaType; _FileTypeMatcher = matcher; }
public RangeFileTypeMatcher(FileTypeMatcher matcher, int maximumStartLocation) { if (matcher is RangeFileTypeMatcher) { throw new ArgumentException("matcher cannot be of type RangeFileTypeMatcher"); } _matcher = matcher; _maximumStartLocation = maximumStartLocation; }