Exemple #1
0
 private bool CompatibilityCheck(Animal animal)
 {
     //Hier wordt elke dier in wagon gecontroleerd of er zelfde type en soort in zit(Alleen geldig voor VleesEter)
     return(AnimalToWagon.All(animalCheck => (animalCheck.grootteType > animal.grootteType ||
                                              animal.animalType != AnimalTypes.VleesEter) &&
                              (animalCheck.animalType != AnimalTypes.VleesEter ||
                               animalCheck.grootteType < animal.grootteType)));
 }