这不起作用(0 项):
var cfg = from n in context.Source<Win32_NetworkAdapterConfiguration>()
where n.Description == theDescription
select n;
但这确实:
var cfg = new List<Win32_NetworkAdapterConfiguration>();
var x = from n in context.Source<Win32_NetworkAdapterConfiguration>()
select n;
foreach (var i in x) { if (i.Description == theDescription) cfg.Add(i); }
为什么 ?