Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How to update one of my table in database at 4pm every day how it is possible?

963


What is entity framework firstordefault?

917


What is the use of viewmodel in mvc?

999


What is the importance of NonActionAttribute?

1013


Name a few different return types of a controller action method?

1027


Explain what platforms does the .net framework run on?

969


What is orm entity framework?

907


What is Attribute Routing in ASP.Net MVC?

1050


How do you assign a value to a complex number 7 how has exception hand changed in .net framework 4.0?

882


Can a view be shared across multiple controllers? If yes, how we can do that?

1003


What is renderbody?

972


What is the domain object?

924


What is rxjava used for?

1064


mention what is csdl, ssdl and msl sections in an edmx file?

976


What is meant by viewdata?

926