如何在生成的代码子类中重写方法(不继承) [英] HOWTO override a method in generated code partial class (not inherited)
本文介绍了如何在生成的代码子类中重写方法(不继承)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试覆盖从数据集设计器生成的类型化数据集中的方法,但由于在已生成的部分类中定义了该方法而无法覆盖该方法.
I am trying to override a method in a typed Dataset that was generated from Dataset Designer but cannot override it because it was defined in the generated partial class.
我的项目是ExelWorkbook项目.
My project is an ExelWorkbook project.
一种可能的解决方案是从数据集设计器设置生成双精度派生的" = true,但是我看不到如何做到这一点.有可能吗?
A Possible solution is to set the "Generates Double Derived"= true from the Dataset designer but I cannot see how to do this. Is it possible?
或者,有人知道如何重写在生成的代码子类(未继承)中定义的方法吗?
or, does anyone know how to override a method that was defined in generated code partial class (not inherited)?
推荐答案
请验证我的帐户,以便我可以插入一些指向上下文信息的链接.
Please verify my account so I can insert some links to context info.
这篇关于如何在生成的代码子类中重写方法(不继承)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文