[Mono-list] unchecked() -> OverflowException
Mon, 20 Jan 2003 14:28:44 -0000
compiling the following with mono causes an overflow exception at run time.
int test = unchecked((int)DateTime.Now.Ticks);
Compiling with CSC.exe runs finely using mono or ms.net though. Platform
This a known bug with unchecked?
This message and any associated files is intended only for the use of the
individual or entity to which it is addressed and may contain information
that is privileged, confidential, subject to copyright or constitutes a
trade secret. If you are not the intended recipient you are hereby notified
that any dissemination, disclosure, reproduction or distribution of this
message or files associated with this message is strictly prohibited. If you
have received this message in error, please notify us immediately by
telephone, facsimile or email so that we can arrange for its return. The
views expressed in this e-mail are not necessarily those held by Grey Matter
and as such no liability can be accepted for any action taken in reliance on
While we have checked this e-mail and any attachments for viruses, we do not
warrant that they are virus-free. You must therefore take full
responsibility for virus checking.