@@ -150,7 +150,7 @@ public static Watch GenerateWatch(MemoryDomain domain, long address, WatchSize s
150
150
/// <returns>True if both watch are equals; otherwise, false</returns>
151
151
public static bool operator == ( Watch a , Watch b )
152
152
{
153
- if ( ReferenceEquals ( a , null ) || ReferenceEquals ( b , null ) )
153
+ if ( a is null || b is null )
154
154
{
155
155
return false ;
156
156
}
@@ -171,7 +171,7 @@ public static Watch GenerateWatch(MemoryDomain domain, long address, WatchSize s
171
171
/// <returns>True if they are equals; otherwise, false</returns>
172
172
public static bool operator == ( Watch a , Cheat b )
173
173
{
174
- if ( ReferenceEquals ( a , null ) || ReferenceEquals ( b , null ) )
174
+ if ( a is null || b is null )
175
175
{
176
176
return false ;
177
177
}
@@ -325,7 +325,7 @@ public void ClearChangeCount()
325
325
/// <returns>True if both object are equals; otherwise, false</returns>
326
326
public bool Equals ( Watch other )
327
327
{
328
- if ( ReferenceEquals ( other , null ) )
328
+ if ( other is null )
329
329
{
330
330
return false ;
331
331
}
@@ -342,7 +342,7 @@ public bool Equals(Watch other)
342
342
/// <returns>True if both object are equals; otherwise, false</returns>
343
343
public bool Equals ( Cheat other )
344
344
{
345
- return ! ReferenceEquals ( other , null )
345
+ return other is not null
346
346
&& _domain == other . Domain
347
347
&& Address == other . Address
348
348
&& Size == other . Size ;
0 commit comments