Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public override bool Equals(object obj)
if (obj != null &&
obj is SqlConnectionEncryptOption option)
{
return ToString().Equals(option.ToString());
return _value.Equals(option._value);
}

return false;
Expand All @@ -114,7 +114,7 @@ public override bool Equals(object obj)
/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlClient/SqlConnectionEncryptOption.xml' path='docs/members[@name="SqlConnectionEncryptOption"]/GetHashCode/*' />
public override int GetHashCode()
{
return ToString().GetHashCode();
return _value.GetHashCode();
}
}

Expand Down
Loading