A
AliRezaGoogle
Dear Members
Hi,
I have a question:
Why doesn't "checked" work for sub calls? For example consider the
following snippet of code:
checked
{
Overflower();
}
void Overflower()
{
int t=int.MaxValue;
t++;
}
Why Overflower doesn't throw overflow exception?
Hi,
I have a question:
Why doesn't "checked" work for sub calls? For example consider the
following snippet of code:
checked
{
Overflower();
}
void Overflower()
{
int t=int.MaxValue;
t++;
}
Why Overflower doesn't throw overflow exception?