private WorkExperience fuzhi(WorkExperience _workExperience) { _workExperience.Company = "22"; workExperience = (WorkExperience)_workExperience.Clone(); workExperience.Company = "33"; return(workExperience); }
private Resume(WorkExperience work) { this.work = (WorkExperience)work.Clone();//提供Clone方法调用的私有构造函数,以便克隆“工作经历”的数据 }
public Resume(string name) { this.name = name; work = new WorkExperience(); }
//设置工作经历 public void SetWorkExprience(WorkExperience work) { _work = work.Clone() as WorkExperience; }
public Resume(string name) { _name = name; _work = new WorkExperience(); }
private Resume(WorkExperience work) { _workExperience = (WorkExperience)work.Clone(); }
private ResumePrototype(WorkExperience _workExperience) { _workExperience.Company = "22"; workExperience = (WorkExperience)_workExperience.Clone(); }
private Resume(WorkExperience work) { this.work = (WorkExperience)work.Clone(); }
public ResumePrototype(string _name) { this.Name = _name; workExperience = new WorkExperience(); }
private Resume(WorkExperience work) //私有 { this.work = (WorkExperience)work.Clone(); //深複製 }
private PrototypeICloneable_Resume(WorkExperience work) { this.work = (WorkExperience)work.Clone(); }
public PrototypeICloneable_Resume(string name) { this.name = name; work = new WorkExperience(); }