Re: Casting null to nullable

Jon Skeet <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.clr
Message-ID <[email protected]>
> I find this requirement quite unintuitive and clumsy.  Is there anything
> to be said in its defence?  I thought nullable types were supposed
> to save us this kind of friction.

Could you say exactly what requirement you mean?

You can do:

int? x = null;

with no explicit cast, for instance.

Jon

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.