D
DMG
Why does this fail with a cast exception? The field is coming in from
the data base as null due some bad design on my part but I thought this
would allow me to test and set to false.
DataTableReader dtr = ds.CreateDataReader();
bool? bTest = ((bool?)dtr["isTestField"]??false);
Thanks in advance for any help.
the data base as null due some bad design on my part but I thought this
would allow me to test and set to false.
DataTableReader dtr = ds.CreateDataReader();
bool? bTest = ((bool?)dtr["isTestField"]??false);
Thanks in advance for any help.