public override string ToString() { string strResult = ""; // for (int i = 0; i < Length; i++) // { // strResult = strResult + ((int)TheArray[i]).ToString() + " "; // } int index = 0; // TheArray[0] = 5; // TheArray[1] = 3; // TheArray[2] = 1; // TheArray[3] = 0; // TheArray[4] = 2; // strResult += " --> " + this.FormStepsString(); lock (this) { strResult += " --> " + this.FormEquationString(); } strResult += " --> " + CurrentFitness.ToString(); strResult += " --> " + CalculateNextValue().ToString(); return(strResult); }
public override string ToString() { string strResult = ""; int index = 0; strResult += " --> " + this.FormEquationString(); strResult += " --> " + CurrentFitness.ToString(); return(strResult); }
public override string ToString() { string strResult = ""; for (int i = 0; i < Length; i++) { strResult = strResult + ((int)TheArray[i]).ToString() + " "; } strResult += "-->" + CurrentFitness.ToString(); return(strResult); }