| Value Type | Reference Type |
|---|---|
| Value type they are stored on stack | Reference type they are stored on heap |
| When passed as value type new copy is created and passed so changes to variable does not get reflected back | When passed as Reference type then reference of that variable is passed so changes to variable does get reflected back |
| Value type store real data | Reference type store reference to the data. |
| Value types are faster in access | Reference types are slower in access. |
| Value type consists of primitive data types, structures, enumerations. | Reference type consists of class, array, interface, delegates |
| Value types derive from System.ValueType | Reference types derive from System.Object |
| Value types can not contain the value null. | Reference types can contain the value null. |
Thursday, February 5, 2015
Difference between Value Type and Reference Type
Subscribe to:
Post Comments (Atom)
Popular Posts
-
Many times, it happens that we get an error or exception message while working on the Dynamics 365 UCI form . So, to get more informatio...
-
Problem Statement - While creating Power Automate we may face situation where connection reference for the Dataverse Connector missing and w...
-
Microsoft is coming with yet another cool feature, Enhanced Email for Timeline for Dynamics 365 CE users. This enables users to create emai...
-
Previous Post - Create Azure Function using Visual Studio – Part 2 Step 1 - Open Postman . Paste " End Point URL" of Azure Fu...
-
Previous Post - Call Azure Function using Console Application – Part 4 Note - This blog will not focus on plugin creation. Pre-Requisite -...
No comments:
Post a Comment