Value Types and Reference Types


InterServer Web Hosting and VPS

C# Value Types and Reference Types

Here we'll look at Value Types and Reference Types in C#.

Value Types

A value type is an instance of the type.


  • char
  • bool
  • float
  • double
  • decimal
  • sbyte
  • byte
  • short
  • ushort
  • int
  • uint
  • long
  • ulong
  • enum
  • struct
  • Nullable value types (C# 2)
  • Tuple types (C# 7)


Reference Types

A reference type is a reference to the type.


  • object
  • string
  • dynamic
  • class
  • interface
  • delegate
  • record
  • Nullable reference types (C# 8)


Sponsored Links
SolarSystem - AngularJS Demo
SolarSystem - Angular JS Demo

Check out my first Angular JS demo hosted in Azure, it helped win my first Angular contract. Put the sound on.