Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between value types and reference
types?

Answer Posted / susant

Value type - bool, byte, decimal, double, enum , float,
int, long, short, strut, uint, ulong,
Value types are stored in the Stack
Reference type - class, delegate, interface, object, string
Reference types are stored in the Heap

Value types : Value types directly contain their data, and
instances of value types are either allocated on the stack
or allocated inline in a structure. Value types can be
built-in (implemented by the runtime), user-defined, or
enumerations.

Reference types : Reference types store a reference to the
value's memory address, and are allocated on the heap.
Reference types can be self-describing types, pointer
types, or interface types. The type of a reference type can
be determined from values of self-describing types. Self-
describing types are further split into arrays and class
types. The class types are user-defined classes, boxed
value types, and delegates.

Variables that are value types each have their own copy of
the data, and therefore operations on one variable do not
affect other variables. Variables that are reference types
can refer to the same object; therefore, operations on one
variable can affect the same object referred to by another
variable. All types derive from the System.Object base type.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is .net mobile images control. : Microsoft dot net mobile

888


What are the options provived by vss to the user? how it will help us while delevoping application?

2175


any one can explain about projectarchitecture and project approach briefly

2459


Explain the use of virtual, sealed, override, and abstract.

936


how to change the title of my window?

1844


.Net Frame work arch?

1998


difference between Response.write,server.transfer and also which one is used when ?

1871


What is the purpose of Accordian in jquery? Where it can be used?

2247


What is the difference between .net mobile pages and ordinary .net web page? : Microsoft dot net mobile

899


What is IL code, CLR, CTS, GAC & GC?

984


Explain the purpose of cache? How is it used? : Dot net architecture

965


Explain the types of memory management? : .NET Architecture

894


What is the mesi? : .NET Architecture

981


Explain .net mobile automatic paging? : Microsoft dot net mobile

888


What is the difference between an event and a delegate?

952