How do I modify a value in Dictionary? I want to reassign a value to a value in my dictionary while looping on my dictionary like this:
for (int i = 0; i < dtParams.Count; i++)
{
dtParams.Values.ElementAt(i).Replace("'", "''");
}
where dtParams
is my Dictionary
I want to do some thing like this:
string a = "car";
a = a.Replace("r","t");