@@ -143,7 +143,7 @@ public TProps Properties {
143143 /// <returns></returns>
144144 public bool Equals ( Feature < TGeometry , TProps > other )
145145 {
146- if ( ReferenceEquals ( null , other ) ) return false ;
146+ if ( other is null ) return false ;
147147 if ( ReferenceEquals ( this , other ) ) return true ;
148148 return base . Equals ( other )
149149 && string . Equals ( Id , other . Id )
@@ -153,7 +153,7 @@ public bool Equals(Feature<TGeometry, TProps> other)
153153
154154 public override bool Equals ( object obj )
155155 {
156- if ( ReferenceEquals ( null , obj ) ) return false ;
156+ if ( obj is null ) return false ;
157157 if ( ReferenceEquals ( this , obj ) ) return true ;
158158 if ( obj . GetType ( ) != GetType ( ) ) return false ;
159159 return Equals ( ( Feature < TGeometry , TProps > ) obj ) ;
@@ -271,7 +271,7 @@ private static Dictionary<string, object> GetDictionaryOfPublicProperties(object
271271
272272 public bool Equals ( Feature < TGeometry > other )
273273 {
274- if ( ReferenceEquals ( null , other ) ) return false ;
274+ if ( other is null ) return false ;
275275 if ( ReferenceEquals ( this , other ) ) return true ;
276276
277277 if ( Geometry == null && other . Geometry == null )
@@ -294,7 +294,7 @@ public bool Equals(Feature<TGeometry> other)
294294
295295 public override bool Equals ( object obj )
296296 {
297- if ( ReferenceEquals ( null , obj ) ) return false ;
297+ if ( obj is null ) return false ;
298298 if ( ReferenceEquals ( this , obj ) ) return true ;
299299 return obj . GetType ( ) == GetType ( ) && Equals ( ( Feature < TGeometry > ) obj ) ;
300300 }
@@ -306,12 +306,12 @@ public override int GetHashCode()
306306
307307 public static bool operator == ( Feature < TGeometry > left , Feature < TGeometry > right )
308308 {
309- return left ? . Equals ( right ) ?? ReferenceEquals ( null , right ) ;
309+ return left ? . Equals ( right ) ?? right is null ;
310310 }
311311
312312 public static bool operator != ( Feature < TGeometry > left , Feature < TGeometry > right )
313313 {
314- return ! ( left ? . Equals ( right ) ?? ReferenceEquals ( null , right ) ) ;
314+ return ! ( left ? . Equals ( right ) ?? right is null ) ;
315315 }
316316 }
317317}
0 commit comments