NullableDecimal - Equals(object value) method
Status: Inactive
Brought to you by:
lukadotnet
In NullableDecimal type the Equals(object value)
method should return false instead of throwing an
exception when value parameter is not a
NullableDecimal.
if (!(value is NullableDecimal))
throw new sys.ArgumentException(string.Format
(sysGlb.CultureInfo.CurrentCulture, Locale.GetText
("Value is not a
{0}."), "NullableTypes.NullableDecimal"));
should be
if (!(value is NullableDecimal))
return false;
P.S.
Before fixing bug write a test :-)
Thank You!
Florin Iacob
florin.iacob@gmail.com