Boxing and Unboxing
Distinguish between Boxing and Unboxing.
Expert
Whenever a value type is transformed into an object type, the procedure is termed as boxing; on the other hand, whenever an object type is transformed to the value type, the method is termed as unboxing. Boxing and unboxing permits the value types to be regarded as the objects. Boxing a value type packages it inside the sample of the Object reference type. This enables value type to be stored on the garbage collected heap. Unboxing extracts value type from an object. In the given example, the integer variable i is boxed and is assigned to the object obj.
Example:
int i = 123;
object obj = i; /* Thi line boxes i. */
/* The object obj can be unboxed and then be assigned to integer variable i: */
i = (int)obj; // unboxing
Specify, what is an Activity?
Write the use of MaxDate and MinDate properties of a MonthCalender control?
Why the data validations should be performed at a client side?
Write the syntax to declare the namespace in the .NET and in VB?
State the values that can be allocated to the DialogResult property of the Button control?
Specify the requirements to run ASP.NET AJAX applications on the server?
Explain the term Cloud Computing?
By what way we can display a default value in a text box of the input box?
What do you mean by XBAP? Describe in brief.
Differentiate between the HtmlInputRadioButton or HtmlInputCheckBox control?
18,76,764
1952537 Asked
3,689
Active Tutors
1420986
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!