Also, if the flaskeledig() function is a time consuming one then I'd swap the two parts of the 'if' around:
Code:
if (temp_flasker.Contains(en_flaske.PropertyFlaskeID) && en_flaske._flaskeledig(dt))
{
...
Actually, come to think of its I've just spotted your problem. You've got a ';' at the end of the line including the if. Get rid of that.
/- Sam Judson : Wrox Technical Editor -/