M
M
I am trying to copy the values of one hashtable to another.
I ran into a read only error when using the IDictionaryEnumerator.
while (myHashEnumerator.MoveNext()){
while (fsHashEnumerator.MoveNext()){
if (myHashEnumerator.Key == fsHashEnumerator.Key)
{
myHashEnumerator.Value = fsHashEnumerator.Value;
}
}
}
I have read somewhere on this group that the above doesn't work because
I am retrieving dictionary entries, not the actual key/value pairs.
Any help is appreciated.
I ran into a read only error when using the IDictionaryEnumerator.
while (myHashEnumerator.MoveNext()){
while (fsHashEnumerator.MoveNext()){
if (myHashEnumerator.Key == fsHashEnumerator.Key)
{
myHashEnumerator.Value = fsHashEnumerator.Value;
}
}
}
I have read somewhere on this group that the above doesn't work because
I am retrieving dictionary entries, not the actual key/value pairs.
Any help is appreciated.