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...

What is boxing and unboxing ?

Answer Posted / kirti

Boxing :- Boxing is an implicit conversion of a value type to the type object type

Eg:-

Consider the following declaration of a value-type variable:

int i = 123;

object o = (object) i;

Boxing Conversion

UnBoxing :- Unboxing is an explicit conversion from the type object to a value type

Eg:

int i = 123; // A value type

object box = i; // Boxing

int j = (int)box; // Unboxing

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the remotable objects in .net remoting?

960


What is the purpose of strong name?

1025


What are the ways to renew lifetime leases of objects?

1063


Explain marshalling and its types in .net remoting

932


Name the distributed systems available apart from .net remoting?

952


Define singleton activation mode in .net remoting?

1008


Difference between .net remoting versus distributed com?

984


What are the security features in .net remoting?

994


What is a formatter in .net remoting?

1078


what are the requirements to enable remote components to interact each other?

962


Define delegates and events?

994


Explain Singleton design pattern of Remoting?

972


Is it a good design practice to distribute the implementation to remoting client?

915


How do you implement distributed applications in .net?

986


What do you mean by passport authentication?

1101