adspace


What is boxing and un-boxing in .net?

Answer Posted / Avaneesh Kumar Sahu

Boxing is the process of converting a value type (like int or struct) into an object. Un-boxing is the reverse operation, converting an object back into a value type.nFor example, boxing an integer into an object: Object obj = 42;nUn-boxing an object back into an integer: int num = (int)obj;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the .net syntax for 'while loop'?

1141