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
Project Description: Online game development 1. Online Live Baccarat Game is required - server program(IOCP or ect..). - 2D graphic design. - client program. - we

I need help to develop website using html5, responsive design and jquery.I need e commerce website flike alma meter and spreadshirtHours Skills required: .NET, HTML, Graphic

Project Description: We are a small development house in Singapore, and have a project which is 90 percent complete; thud our previous developer could not finish due to other co

I want the iTunes producer GUI reproduced in ASP.NET MVC using c# / html / js. The part involved deals with creating album / track metadata. The data entered on the website form

Ask queyuyuystion #Minimum 100 words accepted#

Develop Nesting software with unit costing for gasket manufacturing Project Description: Our current gasket costing software is old and antiquated and has limited use interna

What is a Interface? The Interface is a contract that describes the signature of the functionality. So when a class is implementing a interface it says to the outer world, that

Give a small explanation of all Elements in the diagram. Action State: - This is a type of state that has an internal action and one outgoing event that would do the int

What are the various ways of authentication techniques in ASP.NET? The Selection of  an authentication provider is as simple as making an entry in  the web.config file of  the

I am looking individuals who have industry experience working on Microsoft Technology and Jquery ( MVC 4.5 ), who will take live online session and give training through Team Viewe