Please how appropriate can the code below be written.
I am getting an error in the fifth line.
if (ob == null || System.DBNull(ob) = true)
please help
public object ReadFieldValues(ref object ob)
{
try
{
if (ob == null || System.DBNull(ob) = true)
{
return "";
}
else
{
return ob;
}
}
catch (Exception ex)
{
return ("");
}
}
Go to the complete details ...