Hi All,
I want to know how it is possible that I get an error like this: key already exists in this method:
public static void SetParam(string key, object value)
{
if (_stateBag != null)
{
if (key != "" && key != null)
{
if (_stateBag.ContainsKey(key))
{
_stateBag.Remove(key);
if (value != "" && value != null)
{
_stateBag.Add(key, value);
}
}
else if (!_stateBag.ContainsKey(key))
{
if (value != "" && value != null)
{
_stateBag.Add(key, value);
}
...
Go to the complete details ...