how to do this conversion?

Posted by kumar on Stack Overflow See other posts from Stack Overflow or by kumar
Published on 2010-04-09T21:30:45Z Indexed on 2010/04/09 21:33 UTC
Read the original article Hit count: 118

Filed under:
 string mvi = Moneys.GetValue(8) as string;
                    if (mvi == null)
                        money.Currency= Convert.ToDecimal(""); /// I am getting exception Here if its null?
                    else
                        money.Currency= Convert.ToDecimal(mvi); /// Currency is Decimal

money.Currency= Convert.ToDecimal(""); /// I am getting exception Here if its null?

Can any body tell me how to do this? thanks

© Stack Overflow or respective owner

Related posts about c#