📄 expressionmemberaccessdict.vb
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -