/// <summary> Grows the ChemSequence array by a given size. /// /// </summary> /// <seealso cref="growArraySize"> /// </seealso> protected internal virtual void growChemSequenceArray() { growArraySize = chemSequences.Length; IChemSequence[] newchemSequences = new ChemSequence[chemSequences.Length + growArraySize]; Array.Copy(chemSequences, 0, newchemSequences, 0, chemSequences.Length); chemSequences = newchemSequences; }
public override System.Object Clone() { ChemSequence clone = (ChemSequence)base.Clone(); // clone the chemModels clone.chemModelCount = ChemModelCount; clone.chemModels = new ChemModel[clone.chemModelCount]; for (int f = 0; f < clone.chemModelCount; f++) { clone.chemModels[f] = (ChemModel)((ChemModel)chemModels[f]).Clone(); } return(clone); }