示例#1
0
文件: Add.cs 项目: fabbrodan/ZooSim
 public Add(ZooSim.Zoo zoo, params string[] nameAndAge)
 {
     _name    = nameAndAge[0];
     _        = Int32.TryParse(nameAndAge[1], out _age);
     _animals = zoo.Animals;
     _account = zoo.Account;
 }
示例#2
0
文件: Zoo.cs 项目: fabbrodan/ZooSim
 public Zoo()
 {
     Animals = new ZooAnimals();
     Account = new Account(1000.00m);
 }
示例#3
0
 public PayLoan(IZooAccount account, params string[] paramArr)
 {
     _account = account;
     _        = decimal.TryParse(paramArr[1], out _amount);
 }