expressionoverloadmethodc.vb

来自「大名鼎鼎的mono是.NET平台的跨平台(支持linux」· VB 代码 · 共 23 行

VB
23
字号
'Author:'   Satya Sudha K (ksathyasudha@novell.com)'' (C) 2005 Novell, Inc.Option Strict OffImports SystemModule M    Function F(ByVal a As Long, ByVal b As Integer, ByVal c As Long) As Integer        Return 1    End Function    Function F(ByVal a As String, ByVal b As Date, ByVal c As Integer) As Integer        Return 2    End Function    Function Main() As Integer        Dim obj As Object = "123"        If F(obj, 1, 2) <> 1 Then            Throw New Exception("Overload Resolution failed in latebinding")        End If    End FunctionEnd Module

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?