Skip to content

Commit

Permalink
SecurityId. Equals fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikasoukhov committed Jun 5, 2017
1 parent 4a26d4b commit 524cfb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Messages/SecurityId.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ private int EnsureGetHashCode()
/// <returns><see langword="true" />, if the specified object is equal to the current object, otherwise, <see langword="false" />.</returns>
public override bool Equals(object other)
{
return Equals((SecurityId)other);
var secId = other as SecurityId?;
return secId != null && Equals(secId.Value);
}

/// <summary>
Expand Down

0 comments on commit 524cfb5

Please sign in to comment.