what are value types and reference types? where they are stored?

Answer Posted / chiyan

value types holds the data directly ,no default value for
value type ex-->predefined datatypes
-->structures
-->enumarator
valuetypes will be stored in stack memory.

refe types does not holds the value directly,ref type holds
the default value ex-->arrays
-->classes
-->objects

ref types will be stored in heap memory.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are some of the commonly used commands in sqlcommand?

713


How to rotate an Image in C#?

808


What is literal control

782


What is JIT (just in time)? how it works?

755


What is uint16?

709


Give examples for reference types?

758


What is the use of getcommandlineargs() method in c#.net?

744


What’s a strong name?

712


What is datarelation c#?

683


What's c# ?

783


Is xamarin free?

648


What are the properties of string?

717


Why do we need dependency injection in c#?

685


write a C# Program add two matrix ?

772


What is data binding with example?

738