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 we can add the css in mvc?
What is entitycontainer? : Entity framework
What is the purpose of a web form?
How does servicing work for the .net framework 3.0?
What is the use .Glimpse in ASP.Net MVC
Is entity framework slow?
mention what is the key advantage of using entity framework or ef?
What is stateless model?
how can you tell ef to have a different table or column name than that defined for the class?
Explain linq to entities? : Entity framework
why DotNetFramework is included in building a software
how to disable the lazy loading framework?
what is complex type?
Can you Write the GC(Garbage Collector) Algoritham in .NET? (But not Explination of Working of GC).
How can we determine action invoked from HTTP GET or HTTP POST?