請問這部分vb代碼用c#怎么實現(xiàn)? 謝謝
Public Event OnError(ByVal msg As Object)
?
? Public Sub Disconnect()??? ....??? error_no = CF_send(LT_DATA, DataLen)??? If (error_no <> 0) Then????? msg = "Socket Error Number:" & (Str(error_no))????? TError = msg????? RaiseEvent OnError(msg)????? Exit Sub??? End If??? error_no = CF_Leave()??? If (error_no <> 0) Then????? msg = "Socket Error Number:" & (Str(error_no))????? TError = msg????? RaiseEvent OnError(msg)????? Exit Sub??? End If? End Sub
vb代碼用c#怎么實 -- RaiseEvent 用c#怎么實現(xiàn)
12345678_0001
2018-12-06 21:23:48