45 string @
namespace = declaringType.Namespace;
46 if (@
namespace ==
null || !
string.Equals(@
namespace,
"System.Diagnostics",
StringComparison.Ordinal))
234 string name =
method.Name;
249 sb.
Append((c ==
'+') ?
'.' : c);
286 for (
int l = 0;
l <
array.Length;
l++)
296 string value =
"<UnknownType>";
297 if (
array[
l].ParameterType !=
null)
338 sb.
Append(
SR.
GetResourceString(
"Exception_EndStackTraceFromPreviousThrow",
"--- End of stack trace from previous location ---"));
410 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2070:UnrecognizedReflectionPattern", Justification =
"Using Reflection to find the state machine's corresponding method is safe because the corresponding method is the only caller of the state machine. If the state machine is present, the corresponding method will be, too.")]
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
virtual int GetILOffset()
bool IsLastFrameFromForeignExceptionStackTrace
virtual ? string GetFileName()
virtual int GetFileLineNumber()
virtual ? MethodBase GetMethod()
static void GetStackFramesInternal(StackFrameHelper sfh, int iSkip, bool fNeedFileInfo, Exception e)
void InitializeForCurrentThread(int skipFrames, bool fNeedFileInfo)
StackTrace(int skipFrames)
StackTrace(Exception e, int skipFrames, bool fNeedFileInfo)
void CaptureStackTrace(int skipFrames, bool fNeedFileInfo, Exception e)
override string ToString()
static bool TryResolveStateMachineMethod(ref MethodBase method, out Type declaringType)
virtual StackFrame[] GetFrames()
StackTrace(Exception e, int skipFrames)
StackTrace(int skipFrames, bool fNeedFileInfo)
StackTrace(StackFrame frame)
static int CalculateFramesToSkip(StackFrameHelper StackF, int iNumFrames)
static bool ShowInStackTrace(MethodBase mb)
virtual ? StackFrame GetFrame(int index)
StackTrace(bool fNeedFileInfo)
const int METHODS_TO_SKIP
StackFrame[] _stackFrames
void InitializeForException(Exception exception, int skipFrames, bool fNeedFileInfo)
string ToString(TraceFormat traceFormat)
void ToString(TraceFormat traceFormat, StringBuilder sb)
StackTrace(Exception e, bool fNeedFileInfo)
static CultureInfo InvariantCulture
static bool ShowILOffsets
static string GetResourceString(string resourceKey)
static string ArgumentOutOfRange_NeedNonNegNum
StringBuilder AppendLine()
StringBuilder Append(char value, int repeatCount)
StringBuilder AppendFormat(string format, object? arg0)