How to use linq in managementobjectcollection?
following is the code that I want to convert to linq.
For Each share As ManagementObject In searcher.Get()
For Each PC As PropertyData In share.Properties
If Not IsNothing(PC.Value) Then
If PC.Name = "ProcessorId" Then
MsgBox(PC.Name & "-" & PC.Value.ToString())
How can i use linq to do the same thing quickly?
LINQ isn't going to speed anything up here and since the code works, what's the point in converting it to LINQ?? Don't tell me it's because "LINQ is the latest and greatest thing and it makes my code look cool."
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)