What is Data Type in c#. - Online Free Computer Tutorials.

'Software Development, Games Development, Mobile Development, iOS Development, Android Development, Window Phone Development. Dot Net, Window Services,WCF Services, Web Services, MVC, MySQL, SQL Server and Oracle Tutorials, Articles and their Resources

Sunday, March 25, 2012

What is Data Type in c#.

In this Article we are going to learn about Data Types in C#

What is Data Type?

The type of data that a variable contains is called Data Type (type). A Data Type is a classification of things that share similar type of qualities or characteristics or behavior.

C# is strongly typed language so every variable and object must have a type.

There are two types of data type in C#

  1.   primitive types (or) predefined

Ex:  byte, short, int, float, double, long ,char, bool, DateTime, string, object etc..

 2.   non-primitive types (or) User Defined

Ex: class , struct , enum , interface,  delegate, array.

In C#, based on what a variable contains there is two types of built-in data type

1 comment: