If objects contains null or empty then how to validate or check the condition for the same?
How to bool check whether object obj is null or
null
class Program { static void Main(string[] args) { object obj = DBNull.Value; if(obj != DBNull.Value) { double d = Convert.ToDouble(obj); Console.WriteLine(d.ToString()); } } }