Putting values in the Session, boxing & unboxing

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

Given that the HttpSessionState's collection takes in object type, is it
better to define types that need to be stored in the collection as class
rather than struct?
 
Hi, Bob,

If you are unboxing them once or twice in a page you shouldn't be worrying
about the overhead really.

Greetings
Martin
 
Back
Top