What is boxing and how it is done internally?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / sesu
Boxing is the conversion value type to ref. type.
int i=5 -- value type
Object obj; -- Referance type
obj=i; -- Boxing
int j =(int) obj -- Unboxing
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / sandhya
Boxing is an implicit conversion of a value type to the
type object
int i = 123; // A value type
Object box = i // Boxing
In case of value type ,value is stored in the stack but
after boxing process value is stored in to heap.
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / sudhir singh
the process of converting value type to reference type is
called as boxing.
it is an implicit conversion.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain how many number of events does the timer controls?
Can you create a tabletype of recordset in Jet - connected ODBC dbengine?
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
Explain about crystal report in brief?
What are the different types of indexes in SQL Server?
Which property is used to specify the use of an element in the user interface and reports it to the accessibility aids?
How to add resources during runtime
what is a property to resize a label control according to your caption?
Extension methods can be both static and normal class methods. Yes/No?
What is the use of runworkasync() methods?
For a server control, you need to have same properties like color maxlength, size, and allowed character throughout the application. How do you handle this?
How insert recored in the database