Finalizer with CodeDom?

…衆ロ難τιáo~ 提交于 2019-12-08 00:48:10

问题


Is it possible to add a Finalizer to a CodeDom generated class (other than using CodeSnippetTypeMember)?

I couldn't find any information about it on MSDN.


回答1:


This was a known bug in .NET Framework and was reported some time back at http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?feedbackId=FDBK48431

But the link above is currently not working. You can view it using internet archive on the following link http://web.archive.org/web/20080224200911rn_2/connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=97599

I am not sure whether it was fixed or not.



来源:https://stackoverflow.com/questions/2221385/finalizer-with-codedom

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!