Browse Source

ExifTagDescriptionAttribute doesnt need fields

since the reflection is done on the constructor arguments
pull/978/head
Simon Cropp 7 years ago
parent
commit
3f4378381e
No known key found for this signature in database GPG Key ID: C75A8447313A3D69
  1. 5
      src/ImageSharp/MetaData/Profiles/Exif/ExifTagDescriptionAttribute.cs

5
src/ImageSharp/MetaData/Profiles/Exif/ExifTagDescriptionAttribute.cs

@ -12,9 +12,6 @@ namespace SixLabors.ImageSharp.Metadata.Profiles.Exif
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
internal sealed class ExifTagDescriptionAttribute : Attribute
{
private readonly object value;
private readonly string description;
/// <summary>
/// Initializes a new instance of the <see cref="ExifTagDescriptionAttribute"/> class.
/// </summary>
@ -22,8 +19,6 @@ namespace SixLabors.ImageSharp.Metadata.Profiles.Exif
/// <param name="description">The description for the value of the exif tag.</param>
public ExifTagDescriptionAttribute(object value, string description)
{
this.value = value;
this.description = description;
}
/// <summary>

Loading…
Cancel
Save