Hi to everybody. Lastweek i had taken an interview on c#.
They ask what is boxing & unboxing, Masking.Please tell the
answer and it is useful for me.

Answer Posted / sdfasd

Boxing:converting the value type into reference type is called as boxing
during boxing typecasting can be done implicitly.
during boxing the values are copied from method stack to managed heap.
Unboxing:
converting the reference type into value type is called as unboxing
during unboxing typecasting can be done explicitly.
during unboxing the values are copied from managed heap to methodstack.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is yield break in c#?

508


What do you know about WM_CHAR message?

571


What does addressof operator do in background ?

588


How do I unload an assembly?

521


Is c and c# the same?

498






Is typeof c#?

540


What is deadly diamond problem?

542


Can we have 2 main methods in c#?

484


What is escape character in c#?

509


how to create crystal reports give one detail example(i want to view age category report) please give suitable example in my small knowledge

1627


What happens during the process of boxing?

606


How do namespaces work?

526


Tell me the difference between value passing and address passing?

628


If you donot specify an access modifier for a method, what is the default access modifier?

545


What is the default value of guid in c#?

474