Getting the name of an instance
-
Hi, I need to get the name of an instance of class. Perhaps, using reflection? Below i show the example
class Idle Public one as int32 end class class form1 Dim MyIdle as new Idle public Sub button1_click(sender,...) handles button1.click textbox1.text= ?¿ end Sub end class
How can i get the name 'MyIdle' ?? -
Hi, I need to get the name of an instance of class. Perhaps, using reflection? Below i show the example
class Idle Public one as int32 end class class form1 Dim MyIdle as new Idle public Sub button1_click(sender,...) handles button1.click textbox1.text= ?¿ end Sub end class
How can i get the name 'MyIdle' ??hi! you can't get the variable name. With Reflection you can get types of assemblies, for example. but a variable name is not metadata in a compiled assembly, because a variable is only a location in the ram.
solidIT.de - under construction Components for Microsoft .Net audittrail, objectcomparer, deepcopy and much more ...