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
How you can access the values from the Repeater control in ASP.NET?
What is asp.net master page?
What are the event handlers that we can have in global.asax file?
What is mvc in asp.net interview question? : Asp.Net MVC
How Session use Cookies in State Management?
What are custom user controls in asp.net?
What is difference between session and cookies?
What is application in asp net?
Is there any limit for query string? Means what is the maximum size?
What is server side session management?
What is is post back property in asp net?
What are the different authentication modes in asp.net?
What is the difference between session and viewstate?
What is the difference between a default skin and a named skin?
Please briefly explain the usage of global.asax?