Solved

.Net Collections

Posted on 2013-02-01
5
171 Views
Last Modified: 2014-10-24
Dear Friends,

I have a doubt in .net collections:

Once we converted the value from int to char or lets say it another way
what is happening with Stack and heap memory allocations in boxing and unboxing?

Can any one explain me what is happening for memory occupation in stack and heap in this process.....?

Regards
Komala
0
Comment
Question by:OmSaiKomaliSri
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 6

Expert Comment

by:esolve
ID: 38846323
0
 
LVL 4

Accepted Solution

by:
Srinivasulu Muppala earned 500 total points
ID: 38894078
Boxing is the process of converting a value type to the type object or to any interface type implemented by this value type. When the CLR boxes a value type, it wraps the value inside a System.Object and stores it on the managed heap. Unboxing extracts the value type from the object. Boxing is implicit; unboxing is explicit. The concept of boxing and unboxing underlies the C# unified view of the type system, in which a value of any type can be treated as an object.
0
 
LVL 4

Expert Comment

by:Srinivasulu Muppala
ID: 38894083
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
 shows up in Outlook, not OWA or on phone 3 81
Best way to accomplish this task? 3 96
Select distinct 25 123
Why use this lambda? 12 95
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question