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 does int32 mean?
How do generics work in c#?
Explain partial class in c#?
How to find out that the code is written as managed or un-managed code?
What are the various components in crystal reports?
Differentiate between static class and singleton instance?
What is type cast in C#?
What is typeof c#?
What are accessors?
what is a destructor?
What is difference between .net and c#?
What is the default value of date?
What are the drawbacks of extending an interface as opposed to extending a class?
what is the equivalent to regsvr32 and regsvr32 /u a file in .net development?
what is the difference between a struct and a class in c#?