C# Partial Classes

后端 未结 5 1179
盖世英雄少女心
盖世英雄少女心 2021-01-04 01:04

I currently have a solution with multiple projects that mostly use the same classes. As a result, it appeared to me that it would be a good idea to add a class library cont

5条回答
  •  轮回少年
    2021-01-04 01:35

    For what you're trying to do, you should instead try to use base classes and inheritance. Or even better object composition.

提交回复
热议问题