|
|
|
@ -147,14 +147,13 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc |
|
|
|
/// <inheritdoc/>
|
|
|
|
public override bool Equals(IccTagDataEntry other) |
|
|
|
{ |
|
|
|
var entry = other as IccLutBToATagDataEntry; |
|
|
|
return entry != null && this.Equals(entry); |
|
|
|
return other is IccLutBToATagDataEntry entry && this.Equals(entry); |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
public bool Equals(IccLutBToATagDataEntry other) |
|
|
|
{ |
|
|
|
if (ReferenceEquals(null, other)) |
|
|
|
if (other == null) |
|
|
|
{ |
|
|
|
return false; |
|
|
|
} |
|
|
|
@ -178,7 +177,7 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc |
|
|
|
/// <inheritdoc/>
|
|
|
|
public override bool Equals(object obj) |
|
|
|
{ |
|
|
|
if (ReferenceEquals(null, obj)) |
|
|
|
if (obj == null) |
|
|
|
{ |
|
|
|
return false; |
|
|
|
} |
|
|
|
@ -188,7 +187,7 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
return obj is IccLutBToATagDataEntry && this.Equals((IccLutBToATagDataEntry)obj); |
|
|
|
return obj is IccLutBToATagDataEntry other && this.Equals(other); |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
|