will this code works fine? or will it gives error?
Object obj=5;
int i=6;
i=i+obj;
Answer Posted / amit kumar sharma
//can not applied this because i is value type and obj is
reference type so this will create error
//u can do this
Object obj = 5;
int i = 6;
i = i + Convert.ToInt32(obj);
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
How can we determine action invoked from HTTP GET or HTTP POST?
What is an asynchronous controller in asp.net mvc?
What is Area in ASP.Net MVC?
Which is the root namespace for fundamental types in .net framework?
mention what is csdl, ssdl and msl sections in an edmx file?
What are the 2 ways of adding constraints to a route?
Is it possible to cancel filter execution?
Which are the important namespaces used in mvc?
Explain the tools used for unit testing in ASP.Net MVC
What is MVVM design pattern?
What is oauth in web api?
What is display mode in mvc?
Can I uninstall microsoft .net framework?
what is entity framework?
How route table has been created in ASP.NET ASP.Net MVC?