Imports System
Imports System.Runtime.CompilerServices
Public Class Program
Public Shared Sub Log(<CallerFilePath> ByVal Optional filePath As String = "",
<CallerLineNumber> ByVal Optional lineNumber As Integer = 0)
Console.WriteLine("filePath: " & filePath)
Console.WriteLine("lineNumber: " & lineNumber)
End Sub
Public Shared Sub Main()
Log()
End Sub
End Class
' run:
'
' filePath: D:\Windows\TEMP\example.vb
' lineNumber: 13
'