public byte? GetByteValue (int directory, ushort entry_tag) { var entry = GetEntry (directory, entry_tag); if (entry != null && entry is ByteIFDEntry) return (entry as ByteIFDEntry).Value; return null; }