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.



Integer at long type variable are not object.Support your answer with example.And explain the tech..

Answer / 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

More C Sharp Interview Questions

What is a sealed class?

0 Answers  


Can multiple inheritance implemented in c# ?

0 Answers  


What is ienumerable t in c#?

0 Answers  


What do you mean by jagged array?

0 Answers  


What is int parse in c#?

0 Answers  


What is a partial class. Give an example?

0 Answers  


What is .net console?

0 Answers  


What are satellite assemblies?

0 Answers  


int i = 1; int j = 1; System.Console.WriteLine(i == j); System.Console.WriteLine(i.ToString() == j.ToString()); System.Console.WriteLine((object)i == (object)j); Give the sample code above, what is the output to the console?

5 Answers  


What is type system in c#?

0 Answers  


Why do we need abstract class?

0 Answers  


What is the different types of private assembly and shared assembly?

0 Answers  


Categories