expressionmemberaccessdict.vb
来自「大名鼎鼎的mono是.NET平台的跨平台(支持linux」· VB 代码 · 共 24 行
VB
24 行
Option Strict OffImports SystemClass Keys Default Public ReadOnly Property Item(ByVal s As String) As Integer Get Return 10 End Get End PropertyEnd ClassModule Test Function Main() As Integer Dim x As Object = New Keys() Dim y As Integer Dim z As Integer y = x!zzz z = x("abc") If y <> 10 Or Z <> 10 Then Throw New Exception("Unexpected Behavior . As y should be equal to 10 but got y =" & y) End If End FunctionEnd Module
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?