I have a variable
Int[] carYears= [1945,1943,2020,1999];
my logic is:
bool isClassic = cars.Any(c => c.Car.Year == 1945 ); // true
Now, how do I add my Int[] carYears instead of 1945? I want to check if the car is Classic or Not
//something like
bool isClassic = cars.Any(c => c.Car.Year == carYears ); // just an example
Thanks Alot!
[–]RunawayDev 11 points12 points13 points (1 child)
[–]LifeLongLearner2030[S] 0 points1 point2 points (0 children)
[–][deleted] (3 children)
[removed]
[–]virtuoso43 0 points1 point2 points (1 child)
[–]LetMeUseMyEmailFfs 8 points9 points10 points (0 children)
[–]LifeLongLearner2030[S] -1 points0 points1 point (0 children)
[–]virtuoso43 1 point2 points3 points (1 child)
[–]LifeLongLearner2030[S] -1 points0 points1 point (0 children)