Sunday, July 22, 2007

Object : Keyword: Basics, Boxed, Unboxed

• object is an alias for Object in the .net framework
• All types, predefined, userdefined, reference types, value types, inherit directly or indirectly from Object
• It is possible to assign values of any type to variables of type object
• When a variable of value type is converted to object, it is said to be boxed
• When a variable of type object is converted to a value type, it is said to be unboxed

No comments: