Question: Write some code to box and unbox a value type.Answer: // Boxingint i = 4; object o = i; // Unboxing i = (int) o; |
Is it helpful?
Yes
No
Most helpful rated by users:
- Name 10 C# keywords.
- What is public accessibility?
- .NET Stands for?
- What is private accessibility?
- What is protected accessibility?