C# Data Types
In this code snippet, we will take a look at data types in C#. Data types are used to define the type of data a variable can hold. For example, to store whole numbers you can use int, string for text, char for a single character, double for numeric values with decimal points … Data types also differ in size, byte can hold values from 0 to 255, short can hold values from -32,768 to 32,767, int can hold values from -2,147,483,648 to 2,147,483,647, …