when adding to a NameValueCollection you normally would do this:
nvc.Add("SOME LITERAL STRING", "MY VALUE")
but if you dont know the first parameter until you read it in from a file then you would want this:
nvc.Add(myVar, "MY VALUE")
this does not work! The NameValueCollection parameters SAY they want a string, but they really don't, they want a "Literal" sting.
So, the question is: How do I pass a variable string to the first parameter?
nvc.Add("SOME LITERAL STRING", "MY VALUE")
but if you dont know the first parameter until you read it in from a file then you would want this:
nvc.Add(myVar, "MY VALUE")
this does not work! The NameValueCollection parameters SAY they want a string, but they really don't, they want a "Literal" sting.
So, the question is: How do I pass a variable string to the first parameter?