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
Explain the ToolTip control and how it can be associated with the other controls?
State different types of data providers existing in .NET Framework?
Explain the services which UDDI offers to the Web applications.
Write the namespaces which are required to enable the use of databases in the ASP.NET pages?
Mention the two categories which distinctly classifies the variables of the C# programs.
Distinguish between the .EXE and .DLL files?
Distinguish among in-proc and out-of-proc
Which method is used to kill explicitly the users session?
Name the interface that executes the standard query operators in the LINQ?
Write the syntax of the for loop in C# code?
18,76,764
1928419 Asked
3,689
Active Tutors
1445078
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!