Esempio n. 1
0
        public bool ProduceResult(Pair <IZone, IZone> data)
        {
            var first = data.First.RegionNumber;

            if (first != data.Second.RegionNumber)
            {
                return(true);
            }
            // the only other way for it to work is if they are in the excepted list
            return(Exceptions.Contains(first));
        }
 public CheckingAccount(string name, double balance, int number)
 {
     if (number >= 500000)
     {
         if (NumberList.Contains(number))
         {
             Console.WriteLine("Account number already exists");
         }
         else
         {
             this.name    = name;
             this.balance = balance;
             this.number  = number;
             NumberList.Add(number);
         }
     }
 }
Esempio n. 3
0
 private bool ContainsType(int type)
 {
     return(AllowedIndexes.Contains(type));
 }