Shanondink
Technical User
Hi guys,
How can I use myvalue where I currently have ???????.
What I want is to be able to output either maxFinalRent or minFinalRent depending what is in the tmp string.
I can't seem to find anything googling "string as index", "variable as index", etc
response is the response to a SOAP call.
Thanks in advance,
Shanon
How can I use myvalue where I currently have ???????.
Code:
string myvalue = "minFinalRent";
foreach (FloorPlanUnitType fput in response.floorPlanUnitType)
{
Console.WriteLine("Min Final Rent: {0|C}", fput.minFinalRent);
Console.WriteLine("Max Final Rent: {0|C}", fput.maxFinalRent);
// Question here
Console.WriteLine("{0} = {1}", myvalue, fput.????????);
}
What I want is to be able to output either maxFinalRent or minFinalRent depending what is in the tmp string.
I can't seem to find anything googling "string as index", "variable as index", etc
response is the response to a SOAP call.
Thanks in advance,
Shanon