JElster
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;
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.