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
What is .NET Framework? .NET Framework is a complete environment that permits developers to develop, run, and deploy the following applications:     Windows services

Question 1 Discuss the following with respect to .NET Technologies Web Applications Web Server Connections Question 2 Write a sample program using ASP.NET explain

What is aspect oriented programming? The Aspect-oriented software development is the latest technology for the separation of the concerns (SOC) in the software development. The

Project Description: Legacy ASP.NET application for managing tasks for a private client needs a complete re-write. The application has approximately 2500 lines of code, combi

I need a program that mimics the similar functionality as the link below. Program must have a unique user interface. Must add source code, installer, and of course a nice user i

Project Description: Section - Mobile Data Collection System Using the Microsoft Mobile .Net Framework or .Net Compact Framework and ASP.NET web technology develop a mobile d

Part 1 requires you to complete a dynamic web presentation tier, based on your MiddlewareLib.dll  library. This should run as an ASP.NET page, Default.aspx, under WebDev.WebServer,

What's difference between Datagrid, Datalist and repeater? The Datalist ,Datagrid, and Repeater are all ASP.NET data Web controls. They have many things in common such as Da

I want Text/Image printing Counter Project Description: Need your help in our C# programming project. We need to pass this project in two weeks starting from now to pass our

What are the different types of joins? 1) INNER JOIN: The Inner join shows matches only when they exist in both the tables.For example, in the SQL below there are two tabl