O
Octavio Hernandez
Hi,
I have a seemingly easy problem drivin' me nuts. I'd be grateful for any
hint on what may be causing it.
The fact is I'm developing an ASP.NET web site.
At some point, I need to read a money amount from a DataReader. The line is:
if (reader.Read())
{
Currency c1 = (Currency) reader[0]; // OFFENDING LINE
txtAmount.Text = c1.ToString();
// ...
}
The compiler complains that 'System.Currency is inaccessible due to its
protection level'.
If I remove this line and the one below, source compiles fine.
Txs and regards - Octavio
I have a seemingly easy problem drivin' me nuts. I'd be grateful for any
hint on what may be causing it.
The fact is I'm developing an ASP.NET web site.
At some point, I need to read a money amount from a DataReader. The line is:
if (reader.Read())
{
Currency c1 = (Currency) reader[0]; // OFFENDING LINE
txtAmount.Text = c1.ToString();
// ...
}
The compiler complains that 'System.Currency is inaccessible due to its
protection level'.
If I remove this line and the one below, source compiles fine.
Txs and regards - Octavio
