Author: SpongeBert | Posted on: 1/14/2010 4:43:33 AM | Views : 389

Hi All,
I have this code:
SessionManager.SetParam(key, value); decimal som = 0; foreach (var pair in SessionManager._stateBag) { if (pair.Key.Contains("price")) som += (decimal.Parse(pair.Value.ToString())); }
Very rarely I get this error: Collection was modified after the enumerator was instantiated
I think because my SetParam is not yet finished. How can I wait for this?
Thanks! 
...

Go to the complete details ...