Skip to content

Commit

Permalink
Fixed Glimpse#87
Browse files Browse the repository at this point in the history
  • Loading branch information
nikmd23 committed Jul 21, 2011
1 parent f9d2048 commit 5b8d0f3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions source/Glimpse.Core/Plugin/Session.cs
Expand Up @@ -24,10 +24,13 @@ public object GetData(HttpContextBase context)
new[] {"Key", "Value", "Type"}
};

result.AddRange(from object key in session.Keys
let value = session[key.ToString()]
let type = value.GetType()
select new[] {key.ToString(), value, type.ToString()});
foreach (var key in session.Keys)
{
var keyString = key.ToString();
var value = session[keyString];
var type = value != null ? value.GetType().ToString() : null;
result.Add(new[]{keyString, value, type});
}

if (result.Count > 1) return result;

Expand Down

0 comments on commit 5b8d0f3

Please sign in to comment.