decimal是不是CLR的基本类型.

liubo1977 2008-01-31 06:13:50
decimal是不是CLR的基本类型.如果不是,哪些又是CLR的基本类型呢?
...全文
166 18 打赏 收藏 转发到动态 举报
写回复
用AI写文章
18 条回复
切换为时间正序
请发表友善的回复…
发表回复
liubo1977 2008-02-03
  • 打赏
  • 举报
回复
我查了帮助文档,decimal不是CLR的基本类型,但是C#的基本类型,所以C#在实现在这个类型时,重载了很多运算符.
生财 2008-02-02
  • 打赏
  • 举报
回复
null是不是基类型
liyu_2004 2008-02-02
  • 打赏
  • 举报
回复
精度很高的浮点数,28位,是基本类型。
vwxyzh 2008-02-02
  • 打赏
  • 举报
回复
Common Language Infrastructure(CLI)
Partition I:
Concepts and Architecture

Final Draft, Apr 2005

Page 19
8.2.2 Build-in value and reference types
vwxyzh 2008-02-02
  • 打赏
  • 举报
回复
C#基本类型就是CLR基本类型?
ls去看CLR的文档
vrhero 2008-02-02
  • 打赏
  • 举报
回复
楼上...说话要有根据...看看MSDN的官方解释...

=======================================
Built-In Types Table (C# Reference)

The following table shows the keywords for built-in C# types, which are aliases of predefined types in the System namespace.

C# Type .NET Framework Type

bool System.Boolean
byte System.Byte
sbyte System.SByte
char System.Char
decimal System.Decimal
double System.Double
float System.Single
int System.Int32
uint System.UInt32
long System.Int64
ulong System.UInt64
object System.Object
short System.Int16
ushort System.UInt16
string System.String
vwxyzh 2008-02-02
  • 打赏
  • 举报
回复
不算吧,最多算BCL里面类
CLR基本类型大概有:
bool,char,object,string,float32,float64,int8,int16,int32,int64,native int,native unsigned int,typedref,unsigned int8,unsigned int16,unsigned int32,unsigned int64
sdsd46529531 2008-02-01
  • 打赏
  • 举报
回复
mark 受益良多
palm_java 2008-02-01
  • 打赏
  • 举报
回复
是不是相当于  S数据库Money 类型
QQQQAnnie 2008-02-01
  • 打赏
  • 举报
回复
是的

如int ,string 等等.
vrhero 2008-02-01
  • 打赏
  • 举报
回复
因为decimal是128位...64位运算符处理不了...
effun 2008-02-01
  • 打赏
  • 举报
回复
因为Decimal的计算方法比较特殊嘛
liubo1977 2008-02-01
  • 打赏
  • 举报
回复
我发现decimal重载了很多运算符,如:++,--等,但是Single,Double等却没有重载任何的运算符,这是为何?
liubo1977 2008-02-01
  • 打赏
  • 举报
回复
SQL Server 2005 的money类型才8个字节,没法与C#的decimal相比.
一品梅 2008-01-31
  • 打赏
  • 举报
回复
一般不需要记.
除非你想编底层的东西.
米菲爸爸 2008-01-31
  • 打赏
  • 举报
回复
100% yes
changjiangzhibin 2008-01-31
  • 打赏
  • 举报
回复
呵呵
wheeler 2008-01-31
  • 打赏
  • 举报
回复
decimal是的

C# CLR

bool System.Boolean
byte System.Byte
sbyte System.SByte
char System.Char
decimal System.Decimal
double System.Double
float System.Single
int System.Int32
uint System.UInt32
long System.Int64
ulong System.UInt64
object System.Object
short System.Int16
ushort System.UInt16
string System.String

110,538

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧