Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

.Net Collections

Posted on 2013-02-01
5
Medium Priority
?
181 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
  • 2
5 Comments
 
LVL 6

Expert Comment

by:esolve
ID: 38846323
0
 
LVL 4

Accepted Solution

by:
Srinivasulu Muppala earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
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 about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

927 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