G Göran Andersson Mar 9, 2009 #2 Paul said: is there a way to modify a key of a dictionary at all? Click to expand... No, if you would change the value of a key, the item would be in the wrong bucket, and you would never find it again. If you want to change the key of an item you have to remove the item from the dictionary and add it with the new key.
Paul said: is there a way to modify a key of a dictionary at all? Click to expand... No, if you would change the value of a key, the item would be in the wrong bucket, and you would never find it again. If you want to change the key of an item you have to remove the item from the dictionary and add it with the new key.
I Ignacio Machin ( .NET/ C# MVP ) Mar 9, 2009 #3 is there a way to modify a key of a dictionary at all? *** Sent via Developersdexhttp://www.developersdex.com*** Click to expand... NO, You have to create another key and copy the values you want.
is there a way to modify a key of a dictionary at all? *** Sent via Developersdexhttp://www.developersdex.com*** Click to expand... NO, You have to create another key and copy the values you want.