示例#1
0
 public Cat(Animal friend)
     : this()
 {
     Friend = friend;
 }
示例#2
0
 public Duck(Animal friend, int age)
     : this()
 {
     Interlocked.Increment(ref CtorFriendAge);
     Age = age;
     Friend = friend;
 }
示例#3
0
 public Duck(Animal friend)
     : this()
 {
     Friend = friend;
 }
示例#4
0
 public Duck(int age, Animal friend)
     : this()
 {
     Interlocked.Increment(ref CtorAgeFriend);
     Age = age;
     Friend = friend;
 }
示例#5
0
 public Dog(Animal friend)
     : this()
 {
     Friend = friend;
 }