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
What are the remotable objects in .net remoting?
What is the purpose of strong name?
What are the ways to renew lifetime leases of objects?
Explain marshalling and its types in .net remoting
Name the distributed systems available apart from .net remoting?
Define singleton activation mode in .net remoting?
Difference between .net remoting versus distributed com?
What are the security features in .net remoting?
What is a formatter in .net remoting?
what are the requirements to enable remote components to interact each other?
Define delegates and events?
Explain Singleton design pattern of Remoting?
Is it a good design practice to distribute the implementation to remoting client?
How do you implement distributed applications in .net?
What do you mean by passport authentication?