C# to VB - How do I convert this anonymous method / lambda expression across?
How would you convert this to VB (using .NET 4.0 / VS2010) ?

    bw.DoWork += (o, args) =>
    {
         Code Here
    };

I thought maybe like this:

    AddHandler bw.DoWork,
        Function(o, args)
    
            Code Here
    
        End Function

But it says Function <anonymous method> does not return a value on all code paths.

Ideas?
C# to VB - How do I convert this anonymous method / lambda expression across?
===

How would you convert this to VB (using .NET 4.0 / VS2010) ?

    bw.DoWork += (o, args) =>
    {
         Code Here
    };

I thought maybe like this:

    AddHandler bw.DoWork,
        Function(o, args)
    
            Code Here
    
        End Function

But it says Function <anonymous method> does not return a value on all code paths.

Ideas?