Link to home
Start Free TrialLog in
Avatar of resourcesys
resourcesys

asked on

Convert anonymous method/lambda from C# to VB.NET (3.5)

Hi all,

I need assistance to convert the following C# code to VB.NET (ASP.NET 3.5)

            EventHandler<WorkflowCompletedEventArgs> d  = null;
            d = delegate(object o, WorkflowCompletedEventArgs e)
            {
                if (e.WorkflowInstance.InstanceId ==wi.InstanceId)
                {
                    wr.WorkflowCompleted -= d;
                    WorkflowInstance c = wr.GetWorkflow(caller);
                    c.EnqueueItem(qn, e.OutputParameters, null, null);
                }
            };

Any help is greatly appreciated.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Praveen Venu
Praveen Venu
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of resourcesys
resourcesys

ASKER

Hi praveenvenu,

Unfortunately, that didn't, you can't call an anonymous function that way in VB.NET.

Thanks for the response.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Solution was not provided, just information on the topic.