Just a guess here, but I think this is a difference between c# and vb. That is, c# supports an "assignment within expression", but vb does not. Of course, I may be wrong.