public static void ConfigureFromFile(string file)
 {
     XmlPerfCounterSetBuilder b = new XmlPerfCounterSetBuilder();
     IPerfCounterSet pcs = b.BuildFromFile(file);
     IDisposable d = _pcs as IDisposable;
     if (d != null) d.Dispose();
     _pcs = pcs;
 }
        public static void ConfigureFromFile(string file)
        {
            XmlPerfCounterSetBuilder b   = new XmlPerfCounterSetBuilder();
            IPerfCounterSet          pcs = b.BuildFromFile(file);
            IDisposable d = _pcs as IDisposable;

            if (d != null)
            {
                d.Dispose();
            }
            _pcs = pcs;
        }
 public static IPerfCounterSet FromFile(string xmlFile)
 {
     XmlPerfCounterSetBuilder pcb = new XmlPerfCounterSetBuilder();
     return pcb.BuildFromFile(xmlFile);
 }
        public static IPerfCounterSet FromFile(string xmlFile)
        {
            XmlPerfCounterSetBuilder pcb = new XmlPerfCounterSetBuilder();

            return(pcb.BuildFromFile(xmlFile));
        }