Menu

#17 NullableDecimal - Equals(object value) method

open
nobody
None
5
2005-12-22
2005-12-22
No

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

Discussion


Log in to post a comment.

MongoDB Logo MongoDB