| 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...
-
Pre-requisites Login to Azure Devops and open Project created in previous post . 1. Create Pipeline i) Click on “Releases” in t...
-
1. Clone Repository – Login to Azure Devops, open Project, go to Repos and click on “Clone” Note – Here we are using the reposi...
-
What is covered in this series? Create Azure Function in Azure Portal Create Project and Git Repository Setup Build Pipeline ...
No comments:
Post a Comment