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
Will clr handle unmanaged code or not?
Explain how does assembly versioning in .net prevent dll hell?
Elaborate the term WebService and how it differ from Remoting?
What does manifest consists?
How can we call methods in remoting asynchronously?
Are you aware of containment and Aggregation ?
What are dynamic assemblies?
What is a formatter in .net remoting?
What do you mean by windows authentication?
When should we choose .net remoting over .net web services?
What do you mean by passport authentication?
What are the types of remotable objects?
When do we use delegates in your remoting applications?
Explain the difference between the registerwellknownservicetype(), registerwellknownclienttype(), registeractivatedservicetype() and registeractivatedclienttype() in .net?
Name the distributed systems available apart from .net remoting?