Try:

{"red", "blue", "green"}.Contains(type)

as you itterate through dt