Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ShowInStackTrace()

static bool System.Diagnostics.StackTrace.ShowInStackTrace ( MethodBase mb)
inlinestaticprivate

Definition at line 347 of file StackTrace.cs.

348 {
349 if ((mb.MethodImplementationFlags & MethodImplAttributes.AggressiveInlining) != 0)
350 {
351 return false;
352 }
353 try
354 {
355 if (mb.IsDefined(typeof(StackTraceHiddenAttribute), inherit: false))
356 {
357 return false;
358 }
359 Type declaringType = mb.DeclaringType;
360 if (declaringType != null && declaringType.IsDefined(typeof(StackTraceHiddenAttribute), inherit: false))
361 {
362 return false;
363 }
364 }
365 catch
366 {
367 }
368 return true;
369 }

Referenced by System.Diagnostics.StackTrace.ToString().