protected override void Update() { foreach (var fileFormat in _fileformats) { foreach (var fileFormatProfile in fileFormat.Value) { if (fileFormatProfile.Value.IsMatch(Header)) { Format = fileFormat.Key; FormatProfile = fileFormatProfile.Key; return; } } } }