public override void InitializeFrom(NonPrimitiveChromosome source) { var sourceAsEnum = source as EnumChromosome; if (sourceAsEnum == null) { return; } for (int idx = 0; idx < sourceAsEnum.Count; idx++) { Add(Enum.Parse(Parameter.ParameterType, Enum.GetName(source.Parameter.ParameterType, sourceAsEnum.GetValue(idx)))); } }
public abstract void InitializeFrom(NonPrimitiveChromosome source);