diff --git a/src/ImageSharp/MetaData/Profiles/ICC/Various/IccLocalizedString.cs b/src/ImageSharp/MetaData/Profiles/ICC/Various/IccLocalizedString.cs index 68a5e7cfa..18e28e94c 100644 --- a/src/ImageSharp/MetaData/Profiles/ICC/Various/IccLocalizedString.cs +++ b/src/ImageSharp/MetaData/Profiles/ICC/Various/IccLocalizedString.cs @@ -7,12 +7,12 @@ using System.Globalization; namespace SixLabors.ImageSharp.MetaData.Profiles.Icc { /// - /// A string with a specific locale + /// A string with a specific locale. /// - internal sealed class IccLocalizedString : IEquatable + internal readonly struct IccLocalizedString : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the struct. /// The culture will be /// /// The text value of this string @@ -22,7 +22,7 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the struct. /// The culture will be /// /// The culture of this string @@ -37,26 +37,19 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc } /// - /// Gets the actual text value + /// Gets the text value. /// public string Text { get; } /// - /// Gets the culture of the text + /// Gets the culture of text. /// public CultureInfo Culture { get; } /// - public bool Equals(IccLocalizedString other) - { - if (ReferenceEquals(this, other)) - { - return true; - } - - return this.Culture.Equals(other.Culture) - && this.Text == other.Text; - } + public bool Equals(IccLocalizedString other) => + this.Culture.Equals(other.Culture) && + this.Text == other.Text; /// public override string ToString()