public void SetMatchingProperty(uint tag, ExifHeader headerType, object value) { var exifAttribute = new ExifAttribute(tag, headerType); if (!_exifAttributesCache.ContainsKey(exifAttribute)) return; var propertyName = _exifAttributesCache[exifAttribute]; var propertyInfo = this.GetType().GetProperty(propertyName); propertyInfo.SetValue(this, value, null); _unsetProperties[headerType]--; //this is based on the assumption that Exif tags in the jpg are unique }
public void SetMatchingProperty(uint tag, ExifHeader headerType, object value) { var exifAttribute = new ExifAttribute(tag, headerType); if (!_exifAttributesCache.ContainsKey(exifAttribute)) { return; } var propertyName = _exifAttributesCache[exifAttribute]; var propertyInfo = this.GetType().GetProperty(propertyName); propertyInfo.SetValue(this, value, null); _unsetProperties[headerType]--; //this is based on the assumption that Exif tags in the jpg are unique }
public static bool HasMatchingProperty(uint tag, ExifHeader headerType) { var exifAttribute = new ExifAttribute(tag, headerType); return _exifAttributesCache.ContainsKey(exifAttribute); }
public static bool HasMatchingProperty(uint tag, ExifHeader headerType) { var exifAttribute = new ExifAttribute(tag, headerType); return(_exifAttributesCache.ContainsKey(exifAttribute)); }