I have a simply lambda expression in c# that works. Now I need to convert it into vb but couldn't get it to work - get an error that says "oprator '=' is not defined for types 'T' and 'T'. Can someone tell me what I am doing wrong?
C# code that works:
ThreadPool.QueueUserWorkItem(new WaitCallback(
(obj) =>
{
svc = svcft.CreateChannel()
}))
My VB convrsion that doesn't work:
ThreadPool.QueueUserWorkItem(New WaitCallback(Function(obj) svc = svcft.CreateChannel()))