csharp getdecimal null

Code Example - csharp getdecimal null

                
                        decimal? d= myRdr["myValue"] == DBNull.Value ? null : (decimal?)myRdr["myValue"];