diff --git a/src/ImageSharp/Metadata/Profiles/IPTC/IptcProfile.cs b/src/ImageSharp/Metadata/Profiles/IPTC/IptcProfile.cs
index b46eee0fd..9206e4377 100644
--- a/src/ImageSharp/Metadata/Profiles/IPTC/IptcProfile.cs
+++ b/src/ImageSharp/Metadata/Profiles/IPTC/IptcProfile.cs
@@ -10,11 +10,8 @@ using System.Text;
namespace SixLabors.ImageSharp.Metadata.Profiles.Iptc
{
///
- /// Class that can be used to access an Iptc profile.
+ /// Represents an IPTC profile providing access to the collection of values.
///
- /// This source code is from the Magick.Net project:
- /// https://github.com/dlemstra/Magick.NET/tree/master/src/Magick.NET/Shared/Profiles/Iptc/IptcProfile.cs
- ///
public sealed class IptcProfile : IDeepCloneable
{
private Collection values;
diff --git a/src/ImageSharp/Metadata/Profiles/IPTC/IptcTag.cs b/src/ImageSharp/Metadata/Profiles/IPTC/IptcTag.cs
index 70a90aa10..7258a0291 100644
--- a/src/ImageSharp/Metadata/Profiles/IPTC/IptcTag.cs
+++ b/src/ImageSharp/Metadata/Profiles/IPTC/IptcTag.cs
@@ -4,7 +4,7 @@
namespace SixLabors.ImageSharp.Metadata.Profiles.Iptc
{
///
- /// All iptc tags relevant for images.
+ /// Provides enumeration of all IPTC tags relevant for images.
///
public enum IptcTag
{
diff --git a/src/ImageSharp/Metadata/Profiles/IPTC/IptcValue.cs b/src/ImageSharp/Metadata/Profiles/IPTC/IptcValue.cs
index 8e804353c..e63781012 100644
--- a/src/ImageSharp/Metadata/Profiles/IPTC/IptcValue.cs
+++ b/src/ImageSharp/Metadata/Profiles/IPTC/IptcValue.cs
@@ -7,11 +7,11 @@ using System.Text;
namespace SixLabors.ImageSharp.Metadata.Profiles.Iptc
{
///
- /// A value of the iptc profile.
+ /// Represents a single value of the IPTC profile.
///
public sealed class IptcValue : IDeepCloneable
{
- private byte[] data;
+ private byte[] data = Array.Empty();
private Encoding encoding;
internal IptcValue(IptcValue other)
@@ -165,16 +165,14 @@ namespace SixLabors.ImageSharp.Metadata.Profiles.Iptc
return false;
}
- byte[] data = other.ToByteArray();
-
- if (this.data.Length != data.Length)
+ if (this.data.Length != other.data.Length)
{
return false;
}
for (int i = 0; i < this.data.Length; i++)
{
- if (this.data[i] != data[i])
+ if (this.data[i] != other.data[i])
{
return false;
}
@@ -209,13 +207,13 @@ namespace SixLabors.ImageSharp.Metadata.Profiles.Iptc
///
/// Returns a string that represents the current value with the specified encoding.
///
- /// The encoding to use.
+ /// The encoding to use.
/// A string that represents the current value with the specified encoding.
- public string ToString(Encoding enc)
+ public string ToString(Encoding encoding)
{
- Guard.NotNull(enc, nameof(enc));
+ Guard.NotNull(encoding, nameof(encoding));
- return enc.GetString(this.data);
+ return encoding.GetString(this.data);
}
}
}