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

Answer Posted / poornima

Value Types:

All numeric data types

Boolean, Char, and Date

All structures, even if their members are reference types

Enumerations, since their underlying type is always SByte,
Short, Integer, Long, Byte, UShort, UInteger, or ULong

Reference Types:
String

All arrays, even if their elements are value types

Class types, such as Form

Delegates

1..In value type data stored on stack memory.
2..In reference type data stored on heap memory.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to nest cfml conditional tags?

624


What are annotations in c#?

602


Explain About .NET Remoting and types of remoting

668


Can a static class have a constructor c#?

577


What is a streamwriter in c#?

579






What is a protected class in c#?

586


What is the difference between “dispose” and “finalize” variables in c#?

570


What is an object pool in .net?

733


What do you mean by generic class in c#?

574


What .exe means?

583


What is the meaning of console writeline in c#?

534


Can you use all access modifiers for all types?

607


What is a delegate in c#?

588


Why delegates are required?

603


What are the basic string operations? Explain.

593