impoverloadconversiondecimaltosingle.vb
来自「大名鼎鼎的mono是.NET平台的跨平台(支持linux」· VB 代码 · 共 19 行
VB
19 行
'Author:' V. Sudharsan (vsudharsan@novell.com)'' (C) 2005 Novell, Inc.Option Strict OffModule ImpConversionDecimaltoSingle Function fun(ByVal i As Single) If i <> 10.5 Then System.Console.WriteLine("Implicit Conversion of Decimal to Single not working. Expected 10.5 but got " & i) : Return 1 End If End Function Function Main() As Integer Dim i As Decimal = 10.5 fun(i) End FunctionEnd Module
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?