Каков наилучший способ разбить имя / описание значения на dictionary <string, string>
?
string test = postedByUser='Jason, Bourne' postedById='48775' Text='Some text in here' postedDate='2020-04-21'
, так что в идеале я хочу
dictionary key = postedByUser, value = Jason, Bourne
dictionary key = postedById, value = 48775
et c
код добавлен до сих пор
string test = @"postedByUser=Jason, Bourne' postedById='48775' Text='Some text in here' postedDate='2020-04-21'";
Dictionary<string, string> dict = new Dictionary<string, string>();
List<string> lst = test.Split('=').ToList();
foreach(string item in lst)
{
// cant figure out how edit the orginal string to remove the item that has
//been split by the '='
}