阅读背景:

为构造函数实现策略

来源:互联网 

What is the best way to implement a strategy for the constructor of a template/abstract class in C#? I have several classes which are all based on parsing a string inside the constructor. The parsing is done in a static method which creates list of key value pairs and is common for all classes, but some fields are also common for all classes - thus I use a abstract template class.What is the best way to implement a strategy fo




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: