Application state

N

Ninja

Is everything stored in Application or Session state boxed? For example:
Application["MyVar"] = 10;

Is there boxing involved?

Thanks.
Just learning ASP.NET
 
K

Kevin Spencer

Boxing doesn't come into play until you treat a value type like a reference
type. For example, the integer 10 is a value type. But if you execute any of
the integer methods on the number, it is boxed as an object and then the
method is executed. Therefore, what memory space (such as Application State)
you store a variable in has no effect upon what is stored there.
--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.
 

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

Members online

Forum statistics

Threads
474,100
Messages
2,570,635
Members
47,241
Latest member
HumbertoSt

Latest Threads

Top