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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top