What is boxing?
Answers were Sorted based on User's Feedback
Answer / sivaprasad
Boxing is nothing but converting value type to reference type
Example:int i =10;
object o = i; \\Boxing which can happen implicitly
int j = (int)o; \\Unboxing Converting Referrenvce Type
to value type.
Is This Answer Correct ? | 13 Yes | 0 No |
Answer / vidhya t
Boxing means convert value type to reference type
Is This Answer Correct ? | 13 Yes | 2 No |
Answer / suresh
converting value type to reference type is called boxing.
Is This Answer Correct ? | 10 Yes | 2 No |
Answer / maloy.adhikari
Boxing is the process of converting a value type to the
type object or to any interface type implemented by this
value type. When the CLR boxes a value type, it wraps the
value inside a System.Object and stores it on the managed
heap. Unboxing extracts the value type from the object. In
the following example, the integer variable i is boxed and
assigned to object o.
Exam::
int i = 123;
object o = (object)i; // boxing
...........
o = 123;
i = (int)o; // unboxing
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / progguru
casting value type to reference type eg. int to string
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ardhendu samajdwer
Boxing is the implicit conversion of value type to reference type.
For ex:-
Dim A as integer = 10
Dim B as object
B = A
Or in C#
int A = 10;
object B;
B = A;
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / amar
The actual definition of boxing means converting value type to reference type.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / dinesh
boxing allows value types to be converted into object type or reference type
Is This Answer Correct ? | 0 Yes | 0 No |
when the threads are used in dot net.
What are the events that happen when a client requests an asp.net page from iis server?
Why is global asax is used?
I am using SQLServer 2005. I have one table called Drivers. Every day thousands of records will be added in this table. I have to show all these records in my GridView with out applying ajax timer beacause we don't know the time limit when the new record come to the table. Sometimes it will add for 10 seconds some times 20 seconds. There by Please try without using timer or any other soultion apply for the table in sqlserver. But, i want to see all records immediately when new record comes in table. How? Thanks in advance... Ramesh
What is a postback in asp net?
What is authorization in asp.net?
What is viewstategenerator?
How can we prepairing Interview
What is the answer for "Which configuration Tool your using means" ? we have to tell about IIS or .Net Framework or VSS? Give me in brief ?
What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not?
Which data type does the rangevalidator control support?
What does ascx stand for?