5
Answers

Problem in null conversion?

Jitendra Tiwari

Jitendra Tiwari

14y
3.2k
1
Hello Friends,
I m new in C# programming.
when i access data from a file.
i don't know each field has data or not.
but in my c# coding file wirte code

double value=Convert.ToDouble(dataRow["fieldValue"]);

if fieldValue is null or empty this code show exception.

Please suggest.
Thanks.
Answers (5)