Explain the Difference between value and reference type.

Answer Posted / kinjal

c# provides a set of datatypes. datatypes of c# contain two categories one is value type and another is reference type.

value type is a variable. datatype value store in variables while a variable of a reference type stores a reference to the data.

both value type and reference type have one common thing - both derived from system.object.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is a managed code executed?

718


What is Complex Class in .NET?

612


Explain how com+ related to the dna architecture?

566


Explain what are the deferred execution and the immediate execution in linq?

581


What is your observations between vb.net and vc#.net?

548






What are the types of assemblies in .net?

573


What is machine.config in .net?

579


What is the difference between override and overload in a method?

537


What is WSDL? Explain its architecture?

650


How to prepare parametrized (with more than one parameters) crystal report. Please tell me the code procedure, if any body can?

540


What is clr in .net?

623


How will you load an assembly which is not referenced by current assembly?

554


How does linq work?

606


With these events, why wouldn't microsoft combine invalidate and paint, so that you wouldn't have to tell it to repaint, and then to force it to repaint?

518


How com+ related to the dna architecture?

591