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
Whether XCOPY copies the system files and the hidden files or not.
What is an Intermediate Language (IL)?
Differentiate between sliding-time expiration and absolute expiration?
Name the interface that executes the standard query operators in the LINQ?
How the cursor can be programmatically positioned on a given line or on a character in the RichTextBox control in C#?
Write name of the class which can be used for converting the data types?
Is there a technique to suppress the finalize process within the garbage collector forcibly in .NET?
Write down the importance of delegates. Where must they be employed? Write down the conditions where we need them?
Mention different types of data providers available in .NET Framework.
What does it signify to state ‘the canonical’ form of the XML?
18,76,764
1945776 Asked
3,689
Active Tutors
1422196
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!