当前位置: 动力学知识库 > 问答 > 编程问答 >

Converting OracleParameter (Output) of type Decimal to C#.Net decimal Type

问题描述:

I have a Stored Procedure that return money value in its Output parameter.

Is there some straight approach to get the returned value within the parameter and put it into a c# decimal variable?

I'm doing this:

//Replacing the "." by "," and then doing the conversion.

decimal myValue = decimal.Parse(vlr.Replace(".",","))

If you have some tip to get it better, I would appreciate your help.

thanks in advance,

分享给朋友:
您可能感兴趣的文章:
随机阅读: