Answer Posted / 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 View All Answers
What is the difference between renderaction and renderpartial?
Will c# 3.0, vb.net 9.0, atlas, or linq be included in the .net framework 3.0?
mention in what all scenarios entity framework can be applicable?
what is msl?
How we can call a JavaScript function on the change of a Dropdown List in ASP.Net MVC?
What is mvc entity framework?
Explain tempdata in asp.net mvc?
What is the .net framework?
What are ajax helpers in asp.net mvc?
What is model first? : Entity framework
What is .net architecture?
What are the new enhancements done in default project template of asp.net mvc 4?
how to disable the lazy loading framework?
Explain the new features 3.5 framework against with the tool?
Can any particular component of .net framework 3.0 be removed?