2using System.Diagnostics;
3using System.Reflection;
12 private readonly
bool valid;
13 private readonly
bool last;
14 private readonly MethodBase method;
15 private readonly
Type type;
16 private readonly
string typeName;
18 private readonly
string assemblyName;
19 private readonly StackFrame frame;
28 this.method =
Frame.GetMethod();
29 if (this.method is
null)
35 this.type = this.method.DeclaringType;
36 if (this.type is
null)
42 this.typeName = this.type.FullName;
43 this.assembly = this.type.Assembly;
44 this.assemblyName = this.assembly.GetName().Name;
52 public StackFrame
Frame => this.frame;
57 public bool Valid => this.valid;
62 public bool Last => this.last;
67 public MethodBase
Method => this.method;
92 return this.frame.ToString();