public void Method()
 {
     // 2. Confirm constructor has been replaced with factory method call
     var @class = new ConvertConstructorToFactoryMethod("Debbie", "Harry", 23);
 }
 public void Method()
 {
     // 2. Confirm constructor has been replaced with factory method call
     var @class = new ConvertConstructorToFactoryMethod("Debbie", "Harry", 23);
 }
Example #3
0
 public void Method()
 {
     // 2. 确认构造函数已经被工厂方法替换
     var @class = new ConvertConstructorToFactoryMethod("Debbie", "Harry", 23);
 }