Click here to Skip to main content
15,891,253 members
Home / Discussions / C#
   

C#

 
GeneralUnRegister a Service Process Pin
Nagendra Kamath K8-May-04 4:58
Nagendra Kamath K8-May-04 4:58 
GeneralRe: UnRegister a Service Process Pin
ian mariano13-May-04 18:57
ian mariano13-May-04 18:57 
GeneralUsing outlook to send messages. Pin
mpalle8-May-04 4:35
mpalle8-May-04 4:35 
GeneralRe: Using outlook to send messages. Pin
Heath Stewart8-May-04 20:01
protectorHeath Stewart8-May-04 20:01 
GeneralRe: Using outlook to send messages. Pin
mpalle8-May-04 22:24
mpalle8-May-04 22:24 
GeneralRe: Using outlook to send messages. Pin
Heath Stewart9-May-04 2:23
protectorHeath Stewart9-May-04 2:23 
GeneralRe: Using outlook to send messages. Pin
mpalle9-May-04 2:39
mpalle9-May-04 2:39 
GeneralGet name of variable Pin
Stefan Troschuetz8-May-04 4:06
Stefan Troschuetz8-May-04 4:06 
Hi!

Is it possible to get the name of a variable as a string?
For the following example I want to get the string "variable".
<br />
class Test<br />
{<br />
private int variable;<br />
}<br />

I looked into Reflection namespace, but found nothing that fits well. The namespace provides class FieldInfo but unfortunately the only way to get an instance are the methods GetField or the GetFields. Both methods would more or less require that i already know the name of the variable.

THX in advance!
GeneralRe: Get name of variable Pin
Hesham Amin8-May-04 4:13
Hesham Amin8-May-04 4:13 
GeneralRe: Get name of variable Pin
Stefan Troschuetz8-May-04 4:22
Stefan Troschuetz8-May-04 4:22 
GeneralRe: Get name of variable Pin
kayhustle8-May-04 16:03
kayhustle8-May-04 16:03 
GeneralRe: Get name of variable Pin
Stefan Troschuetz9-May-04 0:51
Stefan Troschuetz9-May-04 0:51 
GeneralRe: Get name of variable Pin
Heath Stewart8-May-04 19:29
protectorHeath Stewart8-May-04 19:29 
GeneralRe: Get name of variable Pin
Stefan Troschuetz9-May-04 0:42
Stefan Troschuetz9-May-04 0:42 
GeneralRe: Get name of variable Pin
Heath Stewart9-May-04 2:51
protectorHeath Stewart9-May-04 2:51 
Generaladd a property Pin
cristina_tudor8-May-04 2:48
cristina_tudor8-May-04 2:48 
GeneralRe: add a property Pin
Dave Kreskowiak8-May-04 3:17
mveDave Kreskowiak8-May-04 3:17 
GeneralC# Questions relating to TextBox Pin
Member 6910898-May-04 0:33
Member 6910898-May-04 0:33 
GeneralRe: C# Questions relating to TextBox Pin
Hesham Amin8-May-04 1:19
Hesham Amin8-May-04 1:19 
GeneralRe: C# Questions relating to TextBox Pin
surgeproof8-May-04 4:21
surgeproof8-May-04 4:21 
GeneralRe: C# Questions relating to TextBox Pin
kayhustle8-May-04 5:19
kayhustle8-May-04 5:19 
GeneralRe: C# Questions relating to TextBox Pin
Heath Stewart8-May-04 19:56
protectorHeath Stewart8-May-04 19:56 
Questionhow can i got the version infomation about the sqlsever? Pin
lowiq7-May-04 20:04
lowiq7-May-04 20:04 
AnswerRe: how can i got the version infomation about the sqlsever? Pin
Mazdak7-May-04 20:20
Mazdak7-May-04 20:20 
GeneralRe: how can i got the version infomation about the sqlsever? Pin
lowiq7-May-04 20:30
lowiq7-May-04 20:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.