There are two types of data in C Sharp - primitive data types and reference types. Primitive data types are numeric values and character strings which can be stored in variables or fields. Reference types are objects like classes, structs, arrays and delegates which can be stored in variables or fields
We employ the core fundamental data types in C — int, char, float, and double – most of the time for tiny programmes. We employ derived types - array, structure, union, and pointer – for more complicated and large amounts of data. The words enum and void stand for enumeration and void, respectively.
A data type limits the possible values for an expression, such as a variable or a function. This data type specifies the actions that can be performed on the data, as well as the data's meaning and storage options.
Because each type of data (such as integer, character, float, and so on) is predefined as part of the programming language in C#, all constants and variables defined for a given programme must be described using one of the data types.