What is boxing and unboxing ?
Answer Posted / kirti
Boxing :- Boxing is an implicit conversion of a value type to the type object type
Eg:-
Consider the following declaration of a value-type variable:
int i = 123;
object o = (object) i;
Boxing Conversion
UnBoxing :- Unboxing is an explicit conversion from the type object to a value type
Eg:
int i = 123; // A value type
object box = i; // Boxing
int j = (int)box; // Unboxing
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain Singleton design pattern of Remoting?
What are the different types of channels used by .net remoting?
Explain when we use web service and when we use remoting?
When should we choose .net remoting over .net web services?
What does manifest consists?
What are static assemblies and dynamic assemblies?
What are the steps to publish an object outside the service domain
What is unboxing?
define client activated objects (cao)?
How to directly call a native function exported from a dll?
Explain how to perform remoting?
How are the activation URLs different in case of SAO and CAO in .NET remoting?
What is a formatter in .net remoting?
What are the different types of channels used by .net remoting and which is the best one?
Elaborate the term WebService and how it differ from Remoting?