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 / sujit
int x=10;
object obj=x;//called boxing
x=convert.ToInt32(obj);// called unboxing
Is This Answer Correct ? | 5 Yes | 0 No |
Can a dictionary have duplicate keys c#?
What is Web.config?
Can we make a Static Constructor Parameterized? Give Reason with your answer
Why can’t struct be used instead of class for storing entity?
What?s the difference between System.String and System.StringBuilder classes?
Explain why do I get an error (cs1006) when trying to declare a method without specifying a return type?
What is the difference between struct and class in c#?
I have to create a windows application using C# .net to Modifiy the XML file. The application have to show the node and node value. plz help me.
Can you use all access modifiers for all types?
What if an error occurs in Catch block, how can you prevent it?
Is var a data type?
What does Dispose method do with the connection object?