LYCOS RETRIEVER Beta Retriever Home  |  What is Lycos Retriever?   
Boxing: Types
built 644 days ago
In relation to simple assignments, boxing and unboxing are computationally expensive processes. When a value type is boxed, a new object must be allocated and constructed. To a lesser degree, the cast required for unboxing is ... expensive computationally. For more information, see Performance.
(JULY 9) Upon entering the typical boxing gym, the first elements one encounters don't necessarily meet the senses as much as they assault them. Of necessity, the building is relatively spacious, which makes the staccato ...Copyrighted Story on Arizona Republic
Boxing is an implicit conversion of a value type to the type object or to any interface type implemented by this value type. Boxing a value of a value allocates an object instance and copies the value into the new object.
For an unboxing conversion to a given value-type to succeed at run-time, the value of the source argument must be a reference to an object that was previously created by boxing a value of that value-type. If the source argument is null or a reference to an incompatible object, an InvalidCastException is thrown.
Source:
SEARCH
MORE ABOUT