diff --git a/src/ImageSharp/MetaData/Profiles/ICC/Various/IccColorantTableEntry.cs b/src/ImageSharp/MetaData/Profiles/ICC/Various/IccColorantTableEntry.cs
index 8f273dd603..4bcd1b6861 100644
--- a/src/ImageSharp/MetaData/Profiles/ICC/Various/IccColorantTableEntry.cs
+++ b/src/ImageSharp/MetaData/Profiles/ICC/Various/IccColorantTableEntry.cs
@@ -35,22 +35,22 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc
}
///
- /// Gets the colorant name
+ /// Gets the colorant name.
///
public string Name { get; }
///
- /// Gets the first PCS value
+ /// Gets the first PCS value.
///
public ushort Pcs1 { get; }
///
- /// Gets the second PCS value
+ /// Gets the second PCS value.
///
public ushort Pcs2 { get; }
///
- /// Gets the third PCS value
+ /// Gets the third PCS value.
///
public ushort Pcs3 { get; }
@@ -110,9 +110,6 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc
}
///
- public override string ToString()
- {
- return $"{this.Name}: {this.Pcs1}; {this.Pcs2}; {this.Pcs3}";
- }
+ public override string ToString() => $"{this.Name}: {this.Pcs1}; {this.Pcs2}; {this.Pcs3}";
}
}
diff --git a/src/ImageSharp/MetaData/Profiles/ICC/Various/IccLocalizedString.cs b/src/ImageSharp/MetaData/Profiles/ICC/Various/IccLocalizedString.cs
index 00ededca4d..1920e97fe1 100644
--- a/src/ImageSharp/MetaData/Profiles/ICC/Various/IccLocalizedString.cs
+++ b/src/ImageSharp/MetaData/Profiles/ICC/Various/IccLocalizedString.cs
@@ -49,9 +49,6 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc
this.Text == other.Text;
///
- public override string ToString()
- {
- return $"{this.Culture.Name}: {this.Text}";
- }
+ public override string ToString() => $"{this.Culture.Name}: {this.Text}";
}
}
diff --git a/src/ImageSharp/MetaData/Profiles/ICC/Various/IccProfileId.cs b/src/ImageSharp/MetaData/Profiles/ICC/Various/IccProfileId.cs
index f64d5409ae..710e6bb252 100644
--- a/src/ImageSharp/MetaData/Profiles/ICC/Various/IccProfileId.cs
+++ b/src/ImageSharp/MetaData/Profiles/ICC/Various/IccProfileId.cs
@@ -31,27 +31,27 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc
}
///
- /// Gets the first part of the ID
+ /// Gets the first part of the ID.
///
public uint Part1 { get; }
///
- /// Gets the second part of the ID
+ /// Gets the second part of the ID.
///
public uint Part2 { get; }
///
- /// Gets the third part of the ID
+ /// Gets the third part of the ID.
///
public uint Part3 { get; }
///
- /// Gets the fourth part of the ID
+ /// Gets the fourth part of the ID.
///
public uint Part4 { get; }
///
- /// Gets a value indicating whether the ID is set or just consists of zeros
+ /// Gets a value indicating whether the ID is set or just consists of zeros.
///
public bool IsSet => !this.Equals(Zero);
@@ -86,10 +86,7 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc
}
///
- public override bool Equals(object obj)
- {
- return obj is IccProfileId other && this.Equals(other);
- }
+ public override bool Equals(object obj) => obj is IccProfileId other && this.Equals(other);
///
public bool Equals(IccProfileId other) =>
@@ -109,14 +106,8 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc
}
///
- public override string ToString()
- {
- return $"{ToHex(this.Part1)}-{ToHex(this.Part2)}-{ToHex(this.Part3)}-{ToHex(this.Part4)}";
- }
+ public override string ToString() => $"{ToHex(this.Part1)}-{ToHex(this.Part2)}-{ToHex(this.Part3)}-{ToHex(this.Part4)}";
- private static string ToHex(uint value)
- {
- return value.ToString("X").PadLeft(8, '0');
- }
+ private static string ToHex(uint value) => value.ToString("X").PadLeft(8, '0');
}
}
\ No newline at end of file
diff --git a/src/ImageSharp/MetaData/Profiles/ICC/Various/IccScreeningChannel.cs b/src/ImageSharp/MetaData/Profiles/ICC/Various/IccScreeningChannel.cs
index e8885a66bf..7e2072d5bb 100644
--- a/src/ImageSharp/MetaData/Profiles/ICC/Various/IccScreeningChannel.cs
+++ b/src/ImageSharp/MetaData/Profiles/ICC/Various/IccScreeningChannel.cs
@@ -26,12 +26,12 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc
}
///
- /// Gets the screen frequency
+ /// Gets the screen frequency.
///
public float Frequency { get; }
///
- /// Gets the angle in degrees
+ /// Gets the angle in degrees.
///
public float Angle { get; }
@@ -89,9 +89,6 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc
}
///
- public override string ToString()
- {
- return $"{this.Frequency}Hz; {this.Angle}°; {this.SpotShape}";
- }
+ public override string ToString() => $"{this.Frequency}Hz; {this.Angle}°; {this.SpotShape}";
}
}
\ No newline at end of file
diff --git a/src/ImageSharp/MetaData/Profiles/ICC/Various/IccTagTableEntry.cs b/src/ImageSharp/MetaData/Profiles/ICC/Various/IccTagTableEntry.cs
index d93e068c52..7713c4faa1 100644
--- a/src/ImageSharp/MetaData/Profiles/ICC/Various/IccTagTableEntry.cs
+++ b/src/ImageSharp/MetaData/Profiles/ICC/Various/IccTagTableEntry.cs
@@ -24,17 +24,17 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc
}
///
- /// Gets the signature of the tag
+ /// Gets the signature of the tag.
///
public IccProfileTag Signature { get; }
///
- /// Gets the offset of entry in bytes
+ /// Gets the offset of entry in bytes.
///
public uint Offset { get; }
///
- /// Gets the size of entry in bytes
+ /// Gets the size of entry in bytes.
///
public uint DataSize { get; }
@@ -69,10 +69,7 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc
}
///
- public override bool Equals(object obj)
- {
- return obj is IccTagTableEntry other && this.Equals(other);
- }
+ public override bool Equals(object obj) => obj is IccTagTableEntry other && this.Equals(other);
///
public bool Equals(IccTagTableEntry other) =>
@@ -81,15 +78,9 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc
this.DataSize.Equals(other.DataSize);
///
- public override int GetHashCode()
- {
- return HashCode.Combine(this.Signature, this.Offset, this.DataSize);
- }
+ public override int GetHashCode() => HashCode.Combine(this.Signature, this.Offset, this.DataSize);
///
- public override string ToString()
- {
- return $"{this.Signature} (Offset: {this.Offset}; Size: {this.DataSize})";
- }
+ public override string ToString() => $"{this.Signature} (Offset: {this.Offset}; Size: {this.DataSize})";
}
}