2
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing = true And components IsNot Nothing Then
components.Dispose()
End If
Finally
MyBase.Dispose(disposing)
End Try
End Sub
错误:受保护的覆盖子处理(disposing As Boolean)'具有多个具有相同签名的定义。在覆盖vb.net中的方法时出现问题
如何在不引发错误的情况下调用此函数?
+1为你的用户名 – Mehrdad 2011-02-19 02:15:20
你是否在其他地方重写该方法?这可能会导致这样的错误。你可能在代码中的其他地方有相同的方法Dispose(ByVal disposing As Boolean)。 – 2011-02-19 02:25:58