public static IChromosomeUint ToChromosomeUint(this ChromosomeUintToJson chromosomeUintToJson) { return(ChromosomeUint.Make ( sequence: chromosomeUintToJson.Sequence, maxVal: chromosomeUintToJson.MaxVal )); }
public static ChromosomeUintToJson ToJsonAdapter(this IChromosomeUint chromosomeUint) { var chromosomeUintToJson = new ChromosomeUintToJson { MaxVal = chromosomeUint.MaxVal, Sequence = chromosomeUint.Sequence.ToList() }; return(chromosomeUintToJson); }