G
Guest
I would like to get the class INSTANCE name (not type name) of an
'object'.
I can get the object (l_obj_ref.GetType()) and then get the
(l_obj_typ.Name) for the class name.
I there any way of getting 'l_Fred_my_ins' out of the following.
....
My_cls l_Fred_my_ins = new My_cls();
Type l_rfl_trg_typ = l_my_ins.GetType();
string l_ins_nam_str = l_rfl_trg_typ.GetClassInstanceName();
....
I would like to 'l_ins_nam_str' instance names for debugging purposes (for
now).
So I want to print out the instance names (of pattern instantiations).
Thanks much for any response.
Shawnk
PS. I'm looking for the syntactic corollary to
'l_whatever.GetClassInstanceName'.
'object'.
I can get the object (l_obj_ref.GetType()) and then get the
(l_obj_typ.Name) for the class name.
I there any way of getting 'l_Fred_my_ins' out of the following.
....
My_cls l_Fred_my_ins = new My_cls();
Type l_rfl_trg_typ = l_my_ins.GetType();
string l_ins_nam_str = l_rfl_trg_typ.GetClassInstanceName();
....
I would like to 'l_ins_nam_str' instance names for debugging purposes (for
now).
So I want to print out the instance names (of pattern instantiations).
Thanks much for any response.
Shawnk
PS. I'm looking for the syntactic corollary to
'l_whatever.GetClassInstanceName'.