Answer Posted / linton lazar
Boxing is converting a value type to a reference type
(Object Type).Casting is converting a reference type to a
reference type or a value type as another value type.
int i = 0;
object o = (object)i; //this is boxing
int i2 = (int)o; //this is unboxing.
long l = (long)i; //this is casting.
| Is This Answer Correct ? | 22 Yes | 0 No |
Post New Answer View All Answers
Explain how asp.net different from asp?
Can action method static?
What is viewstate? What does the “enableviewstate” property do?
Is web config mandatory?
Which platform does Microsoft .NET use for exchanging data between applications?
Explain Life cycle of ASP.NET page when a request is made.
Why Unload event of MasterPage Calls first in ASP.net ?
What is rich control in asp.net?
Define a multilingual website?
if i wanna deploy my asp.net project to the production server and situation is that i m still not compiled my project i have as-is on my development side now on production server we dont have a visual studio now what kind of settings i need to be to do in webconfig /machine.config file to deploy my project and in iis too....
Write some code using interfaces, virtual methods, and an abstract class`
Where can I get information on cookies in asp.net?
Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?
What does mvc represent in asp.net? : asp.net mvc
What is a swagger in web api?