【发布时间】:2011-01-17 10:51:52
【问题描述】:
我会尽量解释我需要什么。
假设我有这样的课程:
Public Class Example1
Public Sub ToBeCalled()
System.Console.WriteLine(
"The Method or Class or file and its line which called me is: ",
?????)
End Sub
End Class
然后我有第二节课是这样的:
Public Class Second
Public Sub SomeProcedure()
Dim obj As Example1 = New Example1
obj.ToBeCalled()
End Sub
End Class
Module1
Dim obj2 As Second = New Second()
obj2.SomeProcedure()
End Module1
我想在屏幕上显示什么而不是“????”是:
1)调用我的方法或类或文件及其行是:Second
2)调用我的方法或类或文件及其行是:SomeProcerure
3) ......是:Second.vb
4) ...... 是:第 54 行
5)....... 是:col 33
有人可以帮帮我吗?
【问题讨论】:
-
您能否修复问题中的代码部分,使其显示为代码?谢谢