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
Which Namespaces is used to achieve the Remoting?
Define singleton activation mode in .net remoting?
Explain marshalling and its types in .net remoting
What are static assemblies and dynamic assemblies. Differences between them?
Explain threading types?
What is the difference beween the registeractivatedservicetype() and registeractivatedclienttype()?
define client activated objects (cao)?
What are the consideration in deciding to use .NET Remoting or ASP.NET Web Services?
What are the information required to configure remote objects?
Is it a good design practice to distribute the implementation to remoting client?
What are the security features in .net remoting?
Explain the types of .net remoting?
Explain the hierarchial description of remoting?
Define remotable objects in .net remoting?
Difference between web services & remoting?