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

Is the lack of deterministic destruction in .NET a problem

1 Answers  


What is Reflection in .NET?

6 Answers   Fiserv, TCS,


Can you explain renderbody and renderpage in asp.net mvc?

0 Answers  


What is ASP.NET MVC?

1 Answers  


What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?

0 Answers  


The order of the filters that get executed, if the multiple filters are implemented?

0 Answers  


Which are the important namespaces used in mvc?

0 Answers  


Explain the difference between viewbag and viewdata in mvc?

0 Answers  


can we change the page layout in ASP.NET 2.0 as grid layout like in the previous version?

1 Answers   TCS,


Is .net framework dead?

0 Answers  


What are the new enhancements done in default project template of asp.net mvc 4?

0 Answers  


What are class access modifiers

1 Answers  


Categories