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 |
What is ViewState and How it is managed,Its Advantages/Benefits?
What is a web pool?
What is an asp.net validator? And, mention its types.
What is the difference between “Web.config” and “Machine.Config”?
Is it necessary to undertsand these events of an ASPX page execute. Explain its importantance?
What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?
How do I use a proxy server when invoking a web service?
Where do you store the information about the user?s locale?
1 Answers Siebel, Visual Soft,
Define ViewState and how can it be used?
How can i explain my project during interview?many time i expalain my project but they did't accept? please explain me.
How do you define authentication in Web.Config?
What is diff. Between abstract class and an interface?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)