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 channels in .net remoting?
What are different types of assemblies?
What is the proxy of the server object in .net remoting?
What are the ways to renew lifetime leases of objects?
Explain the difference between the registerwellknownservicetype(), registerwellknownclienttype(), registeractivatedservicetype() and registeractivatedclienttype() in .net?
Which one is better WebService and Remoting ?
Can you explain remoting?
Hello, I want to connect a system in LAN and i want to access that.When ever i am moving a mouse in my desktop the similar thing have to happend in the another system in which i have connected. I need coding for this in c# and .NET . any one please help me.It is very urgent to me Advance thanks. my email id:manojkumarchallagundla@gmail.com
Explain the Flow of remoting?
Garbage collector?s functionality on unmanaged code ?
What are the threading types?
Explain the hierarchial description of remoting?
Explain the differences between marshal by value and marshal by reference?
Define a process?
Elaborate the term WebService and how it differ from Remoting?