2 writes to _instanceName
System.Diagnostics.PerformanceCounter (2)
System\Diagnostics\PerformanceCounter.cs (2)
63_instanceName = string.Empty; 254_instanceName = value;
16 references to _instanceName
System.Diagnostics.PerformanceCounter (16)
System\Diagnostics\PerformanceCounter.cs (16)
243return _instanceName; 247if (value == null && _instanceName == null) 250if ((value == null && _instanceName != null) || 251(value != null && _instanceName == null) || 252!string.Equals(_instanceName, value, StringComparison.OrdinalIgnoreCase)) 482if (string.IsNullOrEmpty(_instanceName)) 487if (!string.IsNullOrEmpty(_instanceName)) 508if (string.IsNullOrEmpty(_instanceName)) 513if (!string.IsNullOrEmpty(_instanceName)) 517if (string.IsNullOrEmpty(_instanceName) && InstanceLifetime == PerformanceCounterInstanceLifetime.Process) 520_sharedCounter = new SharedPerformanceCounter(currentCategoryName.ToLowerInvariant(), _counterName.ToLowerInvariant(), _instanceName.ToLowerInvariant(), _instanceLifetime); 551if (!string.IsNullOrEmpty(_instanceName)) 552throw new InvalidOperationException(SR.Format(SR.InstanceNameProhibited, _instanceName)); 558if (string.IsNullOrEmpty(_instanceName)) 561return counterSample.GetInstanceValue(_instanceName); 591_sharedCounter.RemoveInstance(_instanceName.ToLowerInvariant(), _instanceLifetime);