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<WorkflowCompl etedEventA rgs> d = null;
d = delegate(object o, WorkflowCompletedEventArgs e)
{
if (e.WorkflowInstance.Instan ceId ==wi.InstanceId)
{
wr.WorkflowCompleted -= d;
WorkflowInstance c = wr.GetWorkflow(caller);
c.EnqueueItem(qn, e.OutputParameters, null, null);
}
};
Any help is greatly appreciated.
Thanks.
I need assistance to convert the following C# code to VB.NET (ASP.NET 3.5)
EventHandler<WorkflowCompl
d = delegate(object o, WorkflowCompletedEventArgs
{
if (e.WorkflowInstance.Instan
{
wr.WorkflowCompleted -= d;
WorkflowInstance c = wr.GetWorkflow(caller);
c.EnqueueItem(qn, e.OutputParameters, null, null);
}
};
Any help is greatly appreciated.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Solution was not provided, just information on the topic.
ASKER
Unfortunately, that didn't, you can't call an anonymous function that way in VB.NET.
Thanks for the response.