请问 CType和DirectCast函数有何区别
摘要:DirectCast 关键字引入类型转换操作。该关键字的使用方法与 CType 关键字相同,如下列所示:Dim Q As Object = 2.37 ' Requires Option Strict to be Off.Dim I As Integer = CType(Q, Integer) ' Succeeds.Dim J As Integer = DirectCast(Q, Integer) ...
阅读全文
posted @
2008-03-12 14:30
风语战士
阅读(1216)
推荐(0)