Monday, 28 September 2015

Boxing and Unboxing in C# .Net

Boxing and Unboxing in C# .Net

Boxing :- Conversion of Value type into Object data type is Known as Boxing.
It is automatically called by Compiler.
e.g :- Image -1









Unboxing :- Conversion of Object type into Value data type is Known as Unboxing.

NOTE :- Unboxing the execution of it then there is always need of Type Casting Method.

e.g:- Image-2



No comments:

Post a Comment

Factorial of a Number

Recently Viewed