The second option probably wouldn't work the way you want because you'd have
to code the property names... Which is the same as coding the variable
names.

If you change the locals to be properties of an object, you can then use
reflection to get the values you want off of the object through
type.GetProperty, and then PropertyInfo.GetValue.

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of brian zinn
Sent: Thursday, April 19, 2007 3:08 PM
To: [email protected]
Subject: Re: [ADVANCED-DOTNET] Creating filling a textbox from a string...
sort of

I think what you're asking is impossible - sounds like reflection on
variable names.

Just use a Dictionary<string, string>, make your array 2 dimensional
or pass in an object with properties like FirstName...

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to