开发者

trouble in overriding a method in vb.net

开发者 https://www.devze.com 2023-02-11 04:56 出处:网络
Protected Overrides Sub Dispose(ByVal disposing As Boolean) Try If disposing = true And components IsNot Nothing Then
 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

精彩评论

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

关注公众号