public NeuralNetworkGene GetGenes() { return(new NeuralNetworkGene { InputGene = _inputLayer.GetGenes(), HiddenGenes = _hiddenLayers.Select(l => l.GetGenes()).ToList(), OutputGene = _outputLayer.GetGenes() }); }