[Mono-dev] Patch for Bug 17318 - Property validation does not properly support nullable values

Luca Marinucci lmarinucci at yahoo.com
Wed Jan 22 21:23:28 UTC 2014


Hi,

Please find attached a patch that potentially fixes a issue with data annotation validation when calling the ValidateProperty or TryValidateProperty method.

https://bugzilla.xamarin.com/show_bug.cgi?id=17318

"The TryValidateProperty (and ValidateProperty) methods of the
System.ComponentModel.DataAnnotation.Validator class do not support nullable
values correctly: When a property is nullable and marked as required, then the
methods return TRUE even if the value is NULL."

Kind regards,
Luca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: validator.diff
Type: application/octet-stream
Size: 6890 bytes
Desc: not available
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20140122/72178c16/attachment.obj>


More information about the Mono-devel-list mailing list