eventd.vb
来自「大名鼎鼎的mono是.NET平台的跨平台(支持linux」· VB 代码 · 共 36 行
VB
36 行
Imports SystemClass C Delegate Sub EH(ByVal i As Integer) Public Event E As EH Public Function S() As Object RaiseEvent E(10) End FunctionEnd ClassClass C1 Dim WithEvents x As C = New C() Function call_S() As Object x.S() End Function Sub EH(ByVal i As Integer) Handles x.E If i <> 10 Then System.Console.WriteLine("#A1 Event call FAils") : m.failed = True End If End SubEnd ClassModule M Public failed As Boolean Function Main() As Integer Dim y As New C1 y.call_S() If failed Then Return 1 End FunctionEnd Module
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?