编译不过去,提示错误:PerformanceCounter表示命名空间,此处应为类。
编译不过去,提示错误:PerformanceCounter表示命名空间,此处应为类。
可是在我编译之前把鼠标指在PerformanceCounter上时, 显示的是class System.Diagnostics.PerformanceCounter啊!!
谁能帮我看看!
代码如下:
foreach (PerformanceCounter counter in counters)
{
this.lstCounters.Items.Add(counter.CounterName);
}