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
What is yield break in c#?
What do you know about WM_CHAR message?
What does addressof operator do in background ?
How do I unload an assembly?
Is c and c# the same?
Is typeof c#?
What is deadly diamond problem?
Can we have 2 main methods in c#?
What is escape character in c#?
how to create crystal reports give one detail example(i want to view age category report) please give suitable example in my small knowledge
What happens during the process of boxing?
How do namespaces work?
Tell me the difference between value passing and address passing?
If you donot specify an access modifier for a method, what is the default access modifier?
What is the default value of guid in c#?