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
What is entityset? : Entity framework
What is html.renderpartial?
will there be any issues adding a table without primary keys to a data model?
What operating systems will the .net framework 3.0 be available for?
Is .net core faster than .net framework?
What are Validation Annotations?
What are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?
What are the advantages of mvc over asp.net?
what is ssdl?
Explain how to use multiple submit buttons in ASP.Net MVC?
What you mean by routing in asp.net mvc?
What is the difference between renderaction and renderpartial?
what is client wins and store wins mode in entity framework concurrency?
What is clr? How does work clr & wht is work of clr?
What is the full form of sp?