internal InstanceDataCollectionCollection ReadCategory() { InstanceDataCollectionCollection collections = new InstanceDataCollectionCollection(); for (int i = 0; i < this.entry.CounterIndexes.Length; i++) { int num2 = this.entry.CounterIndexes[i]; string counterName = (string)this.library.NameTable[num2]; if ((counterName != null) && (counterName != string.Empty)) { CounterDefinitionSample sample = (CounterDefinitionSample)this.CounterTable[num2]; if (sample != null) { collections.Add(counterName, sample.ReadInstanceData(counterName)); } } } return(collections); }
internal InstanceDataCollectionCollection ReadCategory() { #pragma warning disable 618 InstanceDataCollectionCollection data = new InstanceDataCollectionCollection(); #pragma warning restore 618 for (int index = 0; index < this.entry.CounterIndexes.Length; ++ index) { int counterIndex = entry.CounterIndexes[index]; string name = (string)library.NameTable[counterIndex]; if (name != null && name != String.Empty) { CounterDefinitionSample sample = (CounterDefinitionSample)this.CounterTable[counterIndex]; if (sample != null) //If the current index refers to a counter base, //the sample will be null data.Add(name, sample.ReadInstanceData(name)); } } return data; }
internal InstanceDataCollectionCollection ReadCategory() { InstanceDataCollectionCollection collections = new InstanceDataCollectionCollection(); for (int i = 0; i < this.entry.CounterIndexes.Length; i++) { int num2 = this.entry.CounterIndexes[i]; string counterName = (string) this.library.NameTable[num2]; if ((counterName != null) && (counterName != string.Empty)) { CounterDefinitionSample sample = (CounterDefinitionSample) this.CounterTable[num2]; if (sample != null) { collections.Add(counterName, sample.ReadInstanceData(counterName)); } } } return collections; }