Your Ad Here

Friday, August 14, 2009

Data Types in MS.net

MS.net provides 2 kinds of Data types,
1)Value Types
2)Reference Types
Value type: Bool,byte,char,decimal,double,enum,float,int,sbyte,short,struct,uint,ulong,ushort.
Value types are stored in the stack.
Example:
dim x as Integer
x=10
Reference Type:class,delegate,interface,object,string.
Reference Types are stored in the Heap.
Example:
Dim Form1 as new System.Windows.Forms.Form
Form1=New System.Windows.Forms.Form

No comments:

Post a Comment

Your Ad Here