need exquivalent code snippet

Jan 11, 2012 at 8:56 AM

Hi ,

The above code snippet is not supported in .net compact framework.

 

            ldDiscovery.DeviceAdded +=
                (sender, args) =>
                {
                    ldDevices.Add(args.Device);
                    if (maxDevices > 0 && ldDevices.Count >= maxDevices)
                        lmreComplete.Set();
                };

How can this code snippet be written in some other way .

 

Thanks,

Harish

 

 

Coordinator
Jan 11, 2012 at 9:35 AM

 

Harish13,

Does the .NET Compact framework even come with the UPnP Endpoint API? Be aware, that although it may work, I have not designed the Managed UPnP framework to work with the .NET Compact framework, this does not mean it wont work however, i just means I have never tried it.


To answer your question I will need to know what the compile time error is that you are getting?

 

Is it to do with the lambda expression?

Regards,

TheToid