----------------------------------------------------------- New Message on MumbaiUserGroup
----------------------------------------------------------- From: Rohit_BD Message 2 in Discussion It's better to say that boxing (and unboxing) is a specialised form of casting or type-casting. In .NET, every class derives from the "object" class. Since the "object" class is the base class of all objects, any object can be cast to the type "object" and then reconverted to the specific type. The conversion from specific type to "object" is called boxing and the reverse is called unboxing. Unlike traditional casting, any object or datatype can be boxed and unboxed. In traditional casting, there are certain limitations. For example, string type cannot be cast into, say, int type. But any object or variable can be cast to "object". So in simple terms, boxing is casting from specialised type to type "object" and unboxing is the reverse. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
