fix: Check security_type in vs exp Equals impl
This commit is contained in:
1 parent
41ae5897c0
commit
7731f2f4d1
1 file changed
+4
-1
@@ -51,7 +51,10 @@ namespace mbts.analytics {
|
||||
public bts.api.SecurityType security_type;
|
||||
|
||||
public bool Equals(VolSurfaceExpiration other) {
|
||||
return other != null && symbol.Equals(other.symbol) && expiration.Equals(other.expiration);
|
||||
return other != null
|
||||
&& symbol.Equals(other.symbol)
|
||||
&& expiration.Equals(other.expiration)
|
||||
&& security_type == other.security_type;
|
||||
}
|
||||
|
||||
public override int GetHashCode() { return security_type.GetHashCode() ^ symbol.GetHashCode() ^ expiration.GetHashCode(); }
|
||||
|
||||
Reference in new issue
Block a user