Class StackTraceHelper
Defines a static helper class that facilitates getting call stacks through System.Diagnostics.StackTrace.
Inheritance
System.Object
StackTraceHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Juhta.Net.Helpers
Assembly: Juhta.Net.dll
Syntax
public static class StackTraceHelper
Methods
| Improve this Doc View SourceGetCallStack(Int32)
Gets the current call stack.
Declaration
public static string[] GetCallStack(int skipFrames)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | skipFrames | Specifies the number of stack frames to skip. |
Returns
Type | Description |
---|---|
System.String[] | Returns an array of string each of which representing one line in the call stack from top to bottom. |
Remarks
If you want to ignore the first line in the call stack caused by the call to this method, pass 1
as a value of skipFrames
.