Ejemplo n.º 1
0
 private WorkExperience fuzhi(WorkExperience _workExperience)
 {
     _workExperience.Company = "22";
     workExperience          = (WorkExperience)_workExperience.Clone();
     workExperience.Company  = "33";
     return(workExperience);
 }
Ejemplo n.º 2
0
        public Object Clone()
        {
            //return (Resume)this.MemberwiseClone(); // 浅拷贝
            Resume obj = new Resume((WorkExperience)_workExperience.Clone());

            obj._name = this._name;
            obj._age  = this._age;
            obj._sex  = this._sex;
            return(obj);
        }
Ejemplo n.º 3
0
 private Resume(WorkExperience work)
 {
     this.work = (WorkExperience)work.Clone();//提供Clone方法调用的私有构造函数,以便克隆“工作经历”的数据
 }
Ejemplo n.º 4
0
 //设置工作经历
 public void SetWorkExprience(WorkExperience work)
 {
     _work = work.Clone() as WorkExperience;
 }
Ejemplo n.º 5
0
 private Resume(WorkExperience work)
 {
     _workExperience = (WorkExperience)work.Clone();
 }
Ejemplo n.º 6
0
 private ResumePrototype(WorkExperience _workExperience)
 {
     _workExperience.Company = "22";
     workExperience          = (WorkExperience)_workExperience.Clone();
 }
Ejemplo n.º 7
0
 private Resume(WorkExperience work)
 {
     this.work = (WorkExperience)work.Clone();
 }
Ejemplo n.º 8
0
 private Resume(WorkExperience work)           //私有
 {
     this.work = (WorkExperience)work.Clone(); //深複製
 }
Ejemplo n.º 9
0
 private Resume(WorkExperience work)
 {
     this.work = (WorkExperience)work.Clone();
 }
Ejemplo n.º 10
0
 private PrototypeICloneable_Resume(WorkExperience work)
 {
     this.work = (WorkExperience)work.Clone();
 }