Consider the following c# 2005 code
if (!row["ISOC"].Equals((object)DBNull.Value))
{
retval[cnt].isoc = (Int32)row["ISOC"];
}
Now my object in the array has an isoc property, of type Int32.
The value of row["ISOC"] is 177.
The error I get is
When casting from a number, the value must be a number less than infinity.
Now the last time I checked, 177 was less than infinity.
Googling but not really getting anywhere.
if (!row["ISOC"].Equals((object)DBNull.Value))
{
retval[cnt].isoc = (Int32)row["ISOC"];
}
Now my object in the array has an isoc property, of type Int32.
The value of row["ISOC"] is 177.
The error I get is
When casting from a number, the value must be a number less than infinity.
Now the last time I checked, 177 was less than infinity.

Googling but not really getting anywhere.

Comment