Is there any way to convert from DB.Null to decimal in C#?
Like
Object[] returnvalue = new Object[1];
returnvalue[0] = null;
returnvalue[0] = Convert.ToDecimal(returnvalue[returnvalue.Length - 1]);
Though CLR is saying that DBNull.Value cannot be type casted. Still I want to know is there
any work around? Thanks in advance
DBNullin your example? That's just a simplenull.