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 to update one of my table in database at 4pm every day how it is possible?
What is entity framework firstordefault?
What is the use of viewmodel in mvc?
What is the importance of NonActionAttribute?
Name a few different return types of a controller action method?
Explain what platforms does the .net framework run on?
What is orm entity framework?
What is Attribute Routing in ASP.Net MVC?
How do you assign a value to a complex number 7 how has exception hand changed in .net framework 4.0?
Can a view be shared across multiple controllers? If yes, how we can do that?
What is renderbody?
What is the domain object?
What is rxjava used for?
mention what is csdl, ssdl and msl sections in an edmx file?
What is meant by viewdata?