Пример #1
0
 public Neuron(string val)
 {
     _lastId++;
     _totalCount++;
     Id    = _lastId;
     Value = val;
     NeuronList.Record(this);
     Console.WriteLine("Neuron created, Id = {0}", this.Id);
 }
Пример #2
0
        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();
        }