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
Name the distributed systems available apart from .net remoting?
Explain the types of .net remoting?
About Iunknown interface Queue ,its methods Query Interface Addref,Release and Explain each ?
Explain the difference between the registerwellknownservicetype(), registerwellknownclienttype(), registeractivatedservicetype() and registeractivatedclienttype() in .net?
What are static assemblies?
What is unboxing?
What are the information required to configure remote objects?
Write a example code for remoting?
Elaborate the term WebService and how it differ from Remoting?
How do you directly call a native function exported from a DLL?
What are the threading types?
What are the difference between static assemblies and dynamic assemblies?
What is objref object in remoting?
What does manifest consists?
Can you pass SOAP messages through remoting?