In .Net, datatypes are two types
1. Value type
2. Reference type
Value type
--------------
Value type variables can be assigned a value directly. They are derived from the class System.ValueType.
We can assign data directly to the value type variables. int, char, and float are a few examples of value type variables, which stores numbers, alphabets, and floating values respectively. When we declare an int type, the system allocates memory to store the value.
In value type variable and value stored in stack memory.
The below list of the table contains the Value types available in the .Netframework
Reference type:
-------------------
In reference type data types, the variable stores in stack memory and value stores in heap memory and the address of value stored in stack memory.
Reference datatypes derived from the base class System.object
We can't read the value of a reference type directly. By converting the type can use read the value into a variable.




SQL Server
C#.Net
ASP.Net
ADO.Net
jQuery



No comments:
Post a Comment