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
What is the EventLog class?
List the services which are offered by the Window Azure operating system?
Briefly describe the properties in C# and state the advantages which are attained by using them in programs?
Which authentication technique is measured as the trusted authentication method between Windows authentication and SQL Server authentication?
Write the main difference between UnBoxing and boxing.
Write about the architecture of ADO.NET in brief.
How users of an application can be prevented from editing the text in the ComboBox controls in .NET 4.0?
Elucidate Role based security?
Illustrate the term LinqDataSource control?
Explain the difference between the global theme and the page theme?
18,76,764
1930966 Asked
3,689
Active Tutors
1457269
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!