public Neuron(string val) { _lastId++; _totalCount++; Id = _lastId; Value = val; NeuronList.Record(this); Console.WriteLine("Neuron created, Id = {0}", this.Id); }
static void Main(string[] args) { Neuron nOne = new Neuron("Kyle"); Neuron nTwo = new Neuron("Dixon"); NeuronList.Display(); nOne.Connect(nTwo); nOne.DisplayConnections(); nTwo.DisplayConnections(); nTwo.Connect(nOne); nOne.DisplayConnections(); nOne.RemoveCon(nTwo); nOne.DisplayConnections(); nTwo.DisplayConnections(); Console.ReadLine(); }