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 ...