internal ExifLong(ExifTag <uint> tag) : base(tag) { }
private static ExifValue GetOffsetValue(Collection <ExifValue> ifdValues, Collection <ExifValue> values, ExifTag offset) { var index = -1; for (var i = 0; i < ifdValues.Count; i++) { if (ifdValues[i].Tag == offset) { index = i; } } if (values.Count > 0) { if (index != -1) { return(ifdValues[index]); } var result = ExifValues.Create(offset); ifdValues.Add(result); return(result); } else if (index != -1) { ifdValues.RemoveAt(index); } return(null); }
internal static ExifValue Create(ExifTag tag) => (ExifValue)CreateValue(tag);
internal static ExifValue <TValueType> Create <TValueType>(ExifTag <TValueType> tag) => (ExifValue <TValueType>)CreateValue(tag);
private static object CreateValue(ExifTag tag) => ((ExifTagValue)(uint) tag) switch {