34,333
edits
Changes
→C# Integer Variable Types
Perhaps the most widely used of the variable types is the integer. C# provides a number of different integer types based on number size and whether the integers are signed (positive only) or unsigned (positive or negative). All the integer variable types have one thing in common and that is that they may only be used to store whole numbers.
The following table lists the various C# integer variable types together with details of the number of bytes of physical memory consumed by each type and the acceptable value ranges.
<table border="1" cellspacing="0">