标签:context code line 方法调用 mount public rabl ram 并且
public class Registration { public void Create(decimal amount, Student student, IEnumerable<Course> courses, decimal credits) { // do work } }
public class RegistrationContext { public decimal Amount { get; set; } public Student Student { get; set; } public IEnumerable<Course> Courses { get; set; } public decimal Credits { get; set; } } public class Registration { public void Create(RegistrationContext registrationContext) { // do work } }
重构指南 - 引入参数对象(Introduce Parameter Object)
标签:context code line 方法调用 mount public rabl ram 并且
原文地址:http://www.cnblogs.com/hmloo/p/6293110.html