In the previous question below
TargetDate.AddDays(Enumerable.Range(1,7).Where(Function(i) workingDay.Contains(targetDate.AddDays(i).DayOfWeek)).Skip(2).Take(1). First)
I learned how to write the following.
I’m using the above method as a reference, but now I have to write a specification to remove dates in “holidays” variable (List(datetime) type) in the above filtering condition.
I’m trying to find a way how to remove the dates of the List type variable from the above formula, but I haven’t found the right way yet.
If you know how to remove the date in the list above, please let me know how to write it in “Where”.
Thank you for reading