关于getdecimal的功能 [英] about function of getdecimal

查看:524
本文介绍了关于getdecimal的功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是c#中getdecimal方法的功能?

whats is the function of getdecimal method in c#?

推荐答案

如果你的意思是DataReader.GetDecimal方法,那么MSDN就是你的朋友:http://msdn.microsoft.com/en-us/ library / system.data.sqlclient.sqldatareader.getdecimal(v = vs.110).aspx [ ^ ]



As它说的很清楚:



获取指定列的值作为Decimal对象。



即:你告诉它哪一列,它的值为十进制值。



它有多难?
If you mean the DataReader.GetDecimal method, then MSDN is your friend: http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldatareader.getdecimal(v=vs.110).aspx[^]

As it says so clearly:

"Gets the value of the specified column as a Decimal object."

I.e.: You tell it which column, and it gets the value as a decimal value.

How hard can it be?


这篇关于关于getdecimal的功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆