开发者

trouble in overriding a method in vb.net

 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

Error: Protected Overrides Sub Dispose(disposing As Boolean)' has multiple definitions with identical signatures.

How can I call this without raising an error ?


The error says you have two(or more) dispose methods with same signature. Try search for Dispose method in the same class, and if it is the same implementation, remove it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜