5 writes to _numOfFrames
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackTrace.cs (2)
131_numOfFrames = 1; 145_numOfFrames = frameList.Count;
src\System\Diagnostics\StackTrace.CoreCLR.cs (3)
68_numOfFrames = StackF.GetNumberOfFrames(); 87_numOfFrames -= _methodsToSkip; 90_numOfFrames = 0;
14 references to _numOfFrames
System.Private.CoreLib (14)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackTrace.cs (7)
151public virtual int FrameCount => _numOfFrames; 159if (_stackFrames != null && index < _numOfFrames && index >= 0) 173if (_stackFrames == null || _numOfFrames <= 0) 178StackFrame[] array = new StackFrame[_numOfFrames]; 179Array.Copy(_stackFrames, _methodsToSkip, array, 0, _numOfFrames); 225for (int iFrameIndex = 0; iFrameIndex < _numOfFrames; iFrameIndex++) 230(iFrameIndex == _numOfFrames - 1))) // Don't filter last frame
src\System\Diagnostics\StackTrace.CoreCLR.cs (7)
70if (_methodsToSkip > _numOfFrames) 71_methodsToSkip = _numOfFrames; 73if (_numOfFrames != 0) 75_stackFrames = new StackFrame[_numOfFrames]; 77for (int i = 0; i < _numOfFrames; i++) 85_methodsToSkip += CalculateFramesToSkip(StackF, _numOfFrames); 88if (_numOfFrames < 0)