Re: More integer magic.
Per Bolmstedt <[email protected]> Tue, 26 Feb 2008 08:26:27 -0500
| Newsgroups | gmane.comp.windows.devel.dotnet.clr |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
On Tue, 26 Feb 2008 15:21:26 +0200, Brady Kelly <[email protected]> wrote: >> I don't think this has anything to do with integers. I'm guessing >> SetValue() simply assigns default(T) if the assigned value is invalid. > > I would prefer it attempted to cast and assign the invalid value, > causing a NullReference exception or some or other exception, From a really quick glance at the documentation (try it, you'll like it) I think you need to supply a non-default Binder to the SetValue operation for that, since the default binder obviously fails silently. =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com