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
State the reason why workflows are based on the Extensible Models.
Write the difference between for loop and the while in C#.
Illustrate how to manage state in ASP.Net?
Explain about standard query operators in LINQ?
Write difference between an Abstract class and an Interface.
Write the name of event handlers which can be included in a Global.asax file?
What is meant by DLR (Dynamic Language Runtime)?
Difference between read-only variables and constants which are used in programs?
Mention the two categories which distinctly classifies the variables of the C# programs.
What improvements are prepared in CAS in .NET 4.0?
18,76,764
1945287 Asked
3,689
Active Tutors
1445324
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!