public static double GetDouble([NotNull] this Directory directory, int tagType) { if (directory.TryGetDouble(tagType, out double value)) { return(value); } return(ThrowValueNotPossible <double>(directory, tagType)); }