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
Let's say I have an existing application written using vb6 and this application utilizes windows 2000 com+ transaction services. How would you approach migrating this application to.net?
Explain authorization levels in .net ?
Is it true that a Web service must be written in .NET or not?
If we remove web.config or machine.config from the application then, is this application will works?
What are the differences between primary foreign and unique keys?
Is a dll file an executable?
What is Razor View Engine
What is the mvc framework?
What is HTTPModule and HTTPcontext? What is the use of each?
What is the difference between ASP Session State and ASP.Net Session State?
How Session use Cookies in State Management?
What is bson in web api?
can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?
How should I destroy my objects in asp.net?
What is the page life cycle in asp.net?