@ -188,7 +188,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <inheritdoc />
public override bool Equals(object obj)
{
return (obj is Rgba1010102) && this.Equals((Rgba1010102)obj);
return obj is Rgba1010102 other && this.Equals(other);
}
@ -387,7 +387,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <inheritdoc/>
return (obj is Rgba32) && this.Equals((Rgba32)obj);
return obj is Rgba32 other && this.Equals(other);
@ -187,7 +187,7 @@ namespace SixLabors.ImageSharp.PixelFormats
return (obj is Rgba64) && this.Equals((Rgba64)obj);
return obj is Rgba64 other && this.Equals(other);