Category Archives: Sayings

Saying #6

public Drink SelectPort(Conditions weather, string brandPreference)
{

switch (weather)
{

case Conditions.Storm:

return drinks.First(d => d.Category == “Port”);

break;
default:

return drinks.First(d => d.Category == “Port” && d.brand == brandPreference);

break;

}

}