You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
shargon
changed the title
StackItem.GetHasoCode probably shouldn't throw any Exception.StackItem.GetHashCode probably shouldn't throw any Exception.
Oct 23, 2024
According to the C# Specification,
GetHashCode()
must have some properties, for example:So,
StackItem.GetHasoCode
probably shouldn't throw any Exception.But in current implementation,
StackItem
may throw exceptions in some cases:CompoundType.GetHashCode
throwsNotSupportedException
directly;StackItem.GetHashCode
is to compute the HashCode ofGetSpan
, butGetSpan
throw anInvalidCastException
in default.Where in the software does this update applies to?
The text was updated successfully, but these errors were encountered: