Integer at long type variable are not object.Support your
answer with example.And explain the technique to convert from
value type to reference type and vice-versa.
Answer Posted / sujit
int x=10;
object obj=x;//called boxing
x=convert.ToInt32(obj);// called unboxing
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is function and method in c#?
What are nested classes in c#?
Why do we use namespace in c#?
Explain how can you clean up objects holding resources from within the code?
Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?
What are the types of serialization?
How to create multi-dimensional array?
What are the benefits of using windows services:
What is the difference between static class and singleton class in c#?
What is session management in c#?
What is a console device?
What is the use of return in c#?
What is ildasm and obfuscator in net?
Can you have more than one namespace in c#?
Is vs as c#?