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
How we can prevent validation control from validating data at client end?
Specify the function of CheckState property of the CheckBox control?
Write down the ToolTipService timing properties in the WPF?
Explain the syntax of the “for” loop.
Describe four workflow principles?
Explain DataAdapter class in the ADO.NET?
Define Windows Workflow Foundation (WF)?
State the use of a .disco file?
How can we programmatically place a cursor on the given line or on the character in a RichTextBox control in the C#?
Explain how exception handling is changed in the .NET Framework 4.0?
18,76,764
1952038 Asked
3,689
Active Tutors
1420820
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!