Update StackFrame.vb

This commit is contained in:
xieguigang 2020-02-12 18:39:49 +08:00
parent 083a8696c5
commit 562a3f47d6
1 changed files with 17 additions and 0 deletions

View File

@ -71,6 +71,23 @@ Namespace ApplicationServices.Debugging.Diagnostics
''' <returns></returns>
Public Property Line As String
Sub New()
End Sub
''' <summary>
''' make value copy
''' </summary>
''' <param name="clone"></param>
Sub New(clone As StackFrame)
File = clone.File
Line = clone.Line
Method = New Method With {
.Method = clone.Method.Method,
.[Module] = clone.Method.Module,
.[Namespace] = clone.Method.Namespace
}
End Sub
Public Overrides Function ToString() As String
Return $"{Method} at {File}:line {Line}"
End Function