我爱Aspx >> VB.Net >> VB.NET and C# 语法比较手册Byte
Char (example: "A"c)
Short, Integer, Long
Single, Double
Decimal
Date
Reference Types
Object
String
Dim x As Integer
Console.WriteLine(x.GetType()) @# Prints System.Int32
Console.WriteLine(TypeName(x)) @# Prints Integer
@# Type conversion
Dim numDecimal As Single = 3.5
Dim numInt As Integer
numInt = CType(numDecimal, Integer) @# set to 4 (Banker@#s rounding)
numInt = CInt(numDecimal) @# same result as CType
numInt = Int(numDecimal) @# set to 3 (Int function truncates the decimal)
Value Types
bool
byte, sbyte
char (example: @#A@#)
short, ushort, int, uint, long, ulong
float, double
decimal
DateTime (not a built-in C# type)
Reference Types
object
string
【我对这篇文章有话说?】
在VB.NET中应用Agent技术[05-20]
VB.NET获取硬盘信息的几种方法[05-20]
利用VB.NET访问注册表[05-20]
Vb.net向sql server数据库中保存..[05-20]
Vb.net向sql server数据库中保存..[05-20]
VB.net是怎样做到的(一、二)[05-20]
VB.net是怎样做到的(四、五)[05-20]
VB.NET是怎样做到的(五、六)[05-20]
VB.NET实现PhotoShop的流动选取框[05-20]
VB.NET是怎样做到的(七)——可..[05-20]
在VB.NET中应用Agent技术[05-20]
VB.NET获取硬盘信息的几种方法[05-20]
利用VB.NET访问注册表[05-20]
Vb.net向sql server数据库中保存..[05-20]
Vb.net向sql server数据库中保存..[05-20]
向Visual Basic程序员介绍My命名..[05-20]
向Visual Basic程序员介绍My命名..[05-20]
VB.net是怎样做到的(一、二)[05-20]
VB.net是怎样做到的(四、五)[05-20]
VB.NET是怎样做到的(五、六)[05-20]