IMO, the warning is invalid in this situation. If the method was simply returning Bar then you would not get the warning, so it's not understanding that returned Foo requires Bar so should not be disposed.
Dave
Binging is like googling, it just feels dirtier. Please take your VB.NET out of our nice case sensitive forum. Astonish us. Be exceptional. (Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)