Where to put common interface methods when dealing with partial classes, inheritance, and Visual Studio Generated Code

前端 未结 2 1355
悲&欢浪女
悲&欢浪女 2021-01-16 21:20

Consider this situation:

We have two classes generated by Visual Studio, for example Typed Dataset Rows. These classes derive from a common base class which we can

2条回答
  •  感情败类
    2021-01-16 21:34

    It looks like the TableAdapter classes contained in .NET datasets has a base class that can be changed in teh designer. Is this the class you are using with partial classes, or could you use this as a way to provide a common base class where these methods could go?

提交回复
热议问题