public static CounterEntry GetCounterEntry(IntPtr handle, int offset) { CounterEntry counterEntry = CounterEntry.InternalGetCounterEntry(handle, offset); counterEntry.InitializeNextCounter(handle); return(counterEntry); }
private void InitializeNextCounter(IntPtr handle) { CounterEntry counterEntry = this; while (counterEntry.NextCounterOffset != 0) { CounterEntry counterEntry2 = CounterEntry.InternalGetCounterEntry(handle, counterEntry.NextCounterOffset); counterEntry.nextCounterEntry = counterEntry2; counterEntry = counterEntry2; } }