Link to home
Start Free TrialLog in
Avatar of JElster
JElsterFlag for United States of America

asked on

C# How to perform macro substitution

Hi..
I have a customer object with properties like this

CUSTOMER.NAME
CUSTOMER.ADDRESS

How can I pass a NAME or ADDRESS to the object (CUSTOMER) and SET the value of NAME and Address

Pass in  and set
NAME
Value = 'BOB'

// Something like this?

var n = "NAME"
var val = 'BOB'

CUSTOMER[N] = val;
ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial