Differentiate UnBoxing and boxing
Write the main difference between UnBoxing and boxing.
Expert
The process is called as boxing when the value type is converted to the object type while, when the object type is converted to the value type, the process is called as unboxing.
The Boxing and unboxing facilitates value types to be treated as objects. Boxing the value type packages it inside the instance of an Object reference type. It allows a value type to be stored on a garbage collected heap. Unboxing extracts a value type from an object. This example shows an integer variable i is boxed and allocated to object obj.
Example:
int i = 123;
object obj = i; /* Thi line boxes i. */
/* The object obj can then be unboxed and assigned to integer variable i: */
i = (int)obj; // unboxing
Illustrate some of the points regarding UserControl in WPF?
Briefly describe about XSLT?
What does a break statement do in the switch statement?
Illustrate the difference between import System.Data.SqlClient and System.Data.Oledb in brief?
Specify the new features involved in the Microsoft AJAX library?
Write the use of MaxDate and MinDate properties of a MonthCalender control?
Write the difference between the Procedural and Object-oriented programming?
Write the name of the class that manages event and layout of every ToolStrip elements?
How users of an application can be prevented from editing the text in the ComboBox controls in .NET 4.0?
Specify the tools which can be used to develop the .NET applications?
18,76,764
1941098 Asked
3,689
Active Tutors
1421679
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!