|
|
|
@ -121,8 +121,7 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc |
|
|
|
/// <inheritdoc/>
|
|
|
|
public override bool Equals(IccTagDataEntry other) |
|
|
|
{ |
|
|
|
var entry = other as IccNamedColor2TagDataEntry; |
|
|
|
return entry != null && this.Equals(entry); |
|
|
|
return other is IccNamedColor2TagDataEntry entry && this.Equals(entry); |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
@ -159,7 +158,7 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
return obj is IccNamedColor2TagDataEntry && this.Equals((IccNamedColor2TagDataEntry)obj); |
|
|
|
return obj is IccNamedColor2TagDataEntry other && this.Equals(other); |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
|