How can you change a ";" seperated string to some kind of dictionary?

Posted by Sem Dendoncker on Stack Overflow See other posts from Stack Overflow or by Sem Dendoncker
Published on 2010-06-08T07:30:15Z Indexed on 2010/06/08 7:32 UTC
Read the original article Hit count: 308

Hi,

I have a string like this:
"user=u123;name=Test;lastname=User"

I want to get a dictionary for this string like this:

user     "u123"  
name     "Test"  
lastname "User"

this way I can easely access the data within the string.

I want to do this in C#.

Cheers, M.

© Stack Overflow or respective owner

Related posts about c#

Related posts about string