I have need to store key value pairs in a string. I cannot store them in any other type because the function I am passing these values to takes a param called additionalData and it is of type string.
string data = "FirstName: Mike, LastName: Jones, UserId: 101" I then need to be able to retrieve each value based on the key.
I could do something like this and then do string.join to create an array when retrieving but prefer not to because I want to use key value:
string data = string.Format("{0}|{1}|{2} ", "Mike", "Jones", 101)