Integer Family

In this chapter you will learn:

  1. C# integer types

C# integer types

C# defines nine integer types:

  • char
  • byte
  • sbyte
  • short
  • ushort
  • int
  • uint
  • long
  • ulong

char type is used for representing characters.

The integer structures are

  • Byte
  • SByte
  • Int16
  • UInt16
  • Int32
  • UInt32
  • Int64
  • UInt64

The integer structures also define the following const fields:

  • MaxValue
  • MinValue

Next chapter...

What you will learn in the next chapter:

  1. C# Integer ranges
Home » C# Tutorial » Byte, Integer, Long
Integer Family
Integer ranges
byte
Convert to byte
Parse string to byte
byte format
byte octal and hexadecimal
byte binary operation
byte overflow with unchecked
int
int value
Compare int value
int calculation
int value overflow
int binary operation
Parse string to int value
Format int value
int in binary, octal and hexadecimal
long
long value calculation
ulong