Esempio n. 1
0
 public Brain(Brain another)
 {
     //Code to properly copy Brain can go here
 }
Esempio n. 2
0
 protected Brain(Brain another)
 {
     id =
         System.Threading.Interlocked.Increment(ref idCount);
 }
Esempio n. 3
0
 public Person(int age, Brain aBrain)
 {
     theAge   = age;
     theBrain = aBrain;
 }
Esempio n. 4
0
        //...
        public Person(Person another)
        {
            theAge = another.theAge;

            theBrain = another.theBrain.Clone() as Brain;
        }
Esempio n. 5
0
 public Person(Person another)
 {
     theAge   = another.theAge;
     theBrain = new Brain(another.theBrain);
 }