What is concept of boxing and unboxing?, DOT NET Programming

Concept of Boxing and Unboxing

The Boxing permits any value type to be implicitly converted to type object or to any other interface type implemented by the value type. The Boxing is a process in which object instances are created and copy values into that instance.

Unboxing is just reverse of boxing operation in which the value is copied from the instance into the appropriate storage location.

Below is the sample code of boxing and  unboxing where integer data type is converted into the object and then vice versa.

Dim x As Integer

Dim y As Object

x = 10

 ' boxing process

y = x

 unboxing process

x = y

Posted Date: 9/21/2012 6:55:21 AM | Location : United States

Related Discussions:- What is concept of boxing and unboxing?, Assignment Help, Ask Question on What is concept of boxing and unboxing?, Get Answer, Expert's Help, What is concept of boxing and unboxing? Discussions

Write discussion on What is concept of boxing and unboxing?
Your posts are moderated
Related Questions
help me to prepare the above charts for my online vegetable selling project

Experienced Microsoft .NET web developer I have a various projects for which I need a web developer for. The developer will be the sole product owner hence should be dependab

Explain why your project needed XML. Remember XML was meant to exchange data between the two entities as you can define your user friendly tags with ease. In the real world sce

How can you use Hidden frames to cache client data? This technique is implemented by developing a Hidden frame in page which will have your data to be cached. T cols="100

Full Time Coder My colleague is seeking for someone to work on his website via team viewer. First I would need scale following skills- a) C# - b) AJAX - c) LINQ to S

What is the use of attribute  ? This attribute works as a compatibility option. We know that ASP worked in STA model and ASP.NET works in MTA model, but what if your ASP.NET

What is code access security (CAS)? Code access security (CAS) is part of the .NET security model that stops unauthorized access of resources and operations, and restricts the

Design the following interface and add code to the command buttons to achieve the following using case statement. I) find coursework to be calculated using the following formula:-0

What are resource files? The Resource files are the files which contain program resources. Many programmers think that resource files are used only for storing strings. But you

Your first assignment will require you to develop a record processing system in both ASP and PHP, giving you an opportunity to see two modern web scripting languages in action.