R
RSH
This is probably a very simple question but...
How do I get the instantiated name of an object from within the class?
Example:
Sub main
Dim c1 as new TestClass()
c1.PrintName()
end sub
Public Class TestClass
Public Sub PrintName()
Console.WriteLine(Me.<objectname>)
End Sub
End Class
EXPECTED OUTPUT:
c1
Thanks!
Ron
How do I get the instantiated name of an object from within the class?
Example:
Sub main
Dim c1 as new TestClass()
c1.PrintName()
end sub
Public Class TestClass
Public Sub PrintName()
Console.WriteLine(Me.<objectname>)
End Sub
End Class
EXPECTED OUTPUT:
c1
Thanks!
Ron