public static byte GetByte([NotNull] this Directory directory, int tagType)
        {
            if (directory.TryGetByte(tagType, out byte value))
            {
                return(value);
            }

            return(ThrowValueNotPossible <byte>(directory, tagType));
        }
Exemple #2
0
 private static byte?ParseByte(Directory subIfd, int tag)
 {
     return(subIfd.TryGetByte(tag, out var byteValue) ? byteValue : (byte?)null);
 }