About MSDN's Dispose ()

xiaoxiao2021-03-06  70

Here is a question (): http://blog.mvpcn.net/cuike519/Archive/2004/09/04/3579.aspx About That Dispose () Method, I think,: public class SimpleControl: System.Web.ui.Control {base.dispose ();}} it.dispose ();}} it has no error but you deive from system.componentmodel.component, it has Two dispose () Method void dispose () Void Dispose (BOOL Disposing)

MS Has Approved It's MSDN 's Error .only Second Can Be Overrided So Right IS: [C #] Public Void Dispose (); Protected Virtual Void Dispose (Bool Disposing)

[VB.Net] PUBLIC SUB DISPOSE () Protected Overridable Sub Dispose (Byval Disposing as Boolean)

转载请注明原文地址:https://www.9cbs.com/read-108361.html

New Post(0)