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 Reference type and value type



What is Reference type and value type..

Answer / kirti

Reference Type:

Reference types are allocated on the managed CLR heap, just like object types.

A data type that is stored as a reference to the value's location. The value of a reference type is the location of the sequence of bits

that represent the type's data. Reference types can be self-describing types, pointer types, or interface types

Value Type:

Value types are allocated on the stack just like primitive types in VBScript, VB6 and C/C++. Value types are not instantiated using new go out of scope when the function they are defined within returns.

Value types in the CLR are defined as types that derive from system.valueType.

A data type that fully describes a value by specifying the sequence of bits that constitutes the value's representation. Type information for a value type instance is not stored with the instance at run time, but it is available in metadata. Value type instances can be treated as objects using boxing.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

What is MVVM design pattern?

0 Answers  


what is entity graph in entity framework?

0 Answers   Microsoft,


How do you do role based security ?

1 Answers   Accenture, BirlaSoft,


How many .NET languages can a single .NET DLL contain

1 Answers  


What does assert() method do?

1 Answers   MCN Solutions, Siebel Systems,


What is the difference between ViewData, ViewBag and TempData?

0 Answers   Wipro,


Is razor a server side?

0 Answers  


Where are the value-type variables allocated in the computer RAM ?

1 Answers  


How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?

0 Answers  


Can we create .DLL file without using the namespace?

4 Answers  


Diffence between .net framework 1.0 and 2.0?

2 Answers   DataPoint,


what are background threads? give ex?

3 Answers   CSC, Kanbay,


Categories