I am doing this right now:
foreach(..)
{
if(myDic.ContainsKey(car.ID) && myDic[car.ID].Contains(car.MfgID))
{
// do something
}
}
I was wondering if I can perform the check, but check if it doesn't exist, and then just do a continue.
How would I do that? using a || or &&?
I cant' assume the key/value is there so I don't want it to crash.