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
Explain the request flow in asp.net mvc framework?
Can I uninstall microsoft .net framework?
What is the significance of nonactionattribute?
What is edm (entity data model)? : Entity framework
What is the purpose of a web form?
How to return the JSON from action method in ASP.Net MVC?
Where is tempdata stored?
What is the greatest advantage of using asp.net mvc over asp.net webforms?
how to disable the lazy loading framework?
What is filters in web api?
Describe the roles of clr in .net framework.?
What is rxjava used for?
Why to use Html.Partial in ASP.Net MVC?
what do you mean by navigation property?
what is more complex to implement property, methods or event? how can I define criteria to compare the difficulty of implementation between them? for example the number of methods wanted to implements property is 2 methods. how many methods I need it to implements events?