What is different between Boxing and Unboxing?
Answer / Suresh Dutta Joshi
Boxing is the process of converting a value type (like int or bool) to an object type (System.Object). It implicitly occurs when you store a value type in an object variable, pass it as a method argument, or use it in collections that hold objects.nnUnboxing is the opposite operation - converting an object back to its original value type. It must be done explicitly using the C# cast operator (e.g., (T)obj).
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the process of polymorphism with an example?
What is a string c#?
What?s the difference between the System.Array.CopyTo() and System.Array.Clone()?
Can a child class call the constructor of a base class?
What is the Difference between directcast and ctype?
What is datetime minvalue in c#?
Explain nullable types in c#?
What is c sharp language?
What is hiding in CSharp ?
Is multiple inheritance possible in c#?
Describe ways of cleaning up objects.
Can we throw exception from catch block
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)