What is boxing and how it is done internally?
Answer Posted / surya
Boxing is an implicit conversion of a value type to the
type object
int i = 123; // A value type
Object box = i // Boxing
CASTING: casting is the process of converting a variable
from one type to another (from a string to an integer)
Unboxing is an explicit conversion from the type object to
a value type
int i = 123; // A value type
object box = i; // Boxing
int j = (int) box; // Unboxing
Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
What is the full form of gac?
How to use the FindControl() function to preselect an item in my dropdownlist?
How can you pause a timer control?
i already displaying one datagrid. now i want to make change to particular column header i.e i want to split that column header and it includes one more header.... write a code for that in windows application using C#.net
What are windows based applications?
Suppose I am implementing one windows form. I am inserting some values into ms access. In that table 5 columns there. But I want to insert three columns only. When I am clicking another button then other two values also insert into that table?
Explain how insert record in the database?
Which property of the progressbar control specifies the amount to increment the current value of the control?
How do I change the console application in windows?
Explain how barcode create in the report?
How to split a column header in gridview using c#.net?
Which command prompt utility is used to convert a resource file from the text format into the binary format?
Which of the following position is the default docking position of the statusstrip control on the form?
What is the difference between pixels, points, and em’s when fonts are displayed?
How is anchoring different from docking?