public FormulaPara[] ParaDataDeepCopy() { FormulaPara[] result = new FormulaPara[ParaData.Length]; for (int i = 0; i < ParaData.Length; i++) { result[i] = ParaData[i].DeepCopy(); } return(result); }
/// <summary> /// 深拷贝 /// </summary> /// <returns></returns> public FormulaPara DeepCopy() { FormulaPara result = new FormulaPara(); result.name = this.name; result.minvalue = this.minvalue; result.maxvalue = this.maxvalue; result.defvalue = this.defvalue; result.step = this.step; double[] tempUserValue = new double[uservalue.Length]; for (int i = 0; i < uservalue.Length; i++) { tempUserValue[i] = uservalue[i]; } result.uservalue = tempUserValue; return(result); }