📄 expressionoverloadmethoda.vb
字号:
'Author:' Satya Sudha K (ksathyasudha@novell.com)'' (C) 2005 Novell, Inc.'' Since the argument is of type object, the first method should be invoked irrespective of the ' runtime type of the objectOption Strict OffImports SystemModule M Function F(ByVal a As Object) As Integer Return 1 End Function Function F(ByVal a As String) As Integer Return 2 End Function Function Main() As Integer Dim obj As Object = "ABC" If F(obj) <> 1 Then Throw New Exception("Overload Resolution failed in latebinding") End If End FunctionEnd Module
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -