@@ -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 ) ;
@@ -306,7 +306,7 @@ 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 )
0 commit comments