Fix IDE0083
This commit is contained in:
committed by
Pavel Penev
parent
bd2b3d9793
commit
164abfdae1
@@ -210,7 +210,7 @@ namespace OpenRA.Primitives
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (!(obj is Color))
|
||||
if (obj is not Color)
|
||||
return false;
|
||||
|
||||
return this == (Color)obj;
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace OpenRA.Primitives
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (!(obj is Rectangle))
|
||||
if (obj is not Rectangle)
|
||||
return false;
|
||||
|
||||
return this == (Rectangle)obj;
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace OpenRA.Primitives
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (!(obj is Size))
|
||||
if (obj is not Size)
|
||||
return false;
|
||||
|
||||
return this == (Size)obj;
|
||||
|
||||
Reference in New Issue
Block a user