
- C# Basic Tutorial
- C# - Home
- C# - Overview
- C# - Environment
- C# - Program Structure
- C# - Basic Syntax
- C# - Data Types
- C# - Type Conversion
- C# - Variables
- C# - Constants
- C# - Operators
- C# - Decision Making
- C# - Loops
- C# - Encapsulation
- C# - Methods
- C# - Nullables
- C# - Arrays
- C# - Strings
- C# - Structure
- C# - Enums
- C# - Classes
- C# - Inheritance
- C# - Polymorphism
- C# - Operator Overloading
- C# - Interfaces
- C# - Namespaces
- C# - Preprocessor Directives
- C# - Regular Expressions
- C# - Exception Handling
- C# - File I/O
- C# Advanced Tutorial
- C# - Attributes
- C# - Reflection
- C# - Properties
- C# - Indexers
- C# - Delegates
- C# - Events
- C# - Collections
- C# - Generics
- C# - Anonymous Methods
- C# - Unsafe Codes
- C# - Multithreading
- C# Useful Resources
- C# - Questions and Answers
- C# - Quick Guide
- C# - Useful Resources
- C# - Discussion
What are reference data types in C#?
The reference data type in C# does not have the actual data stored in a variable, but they contain a reference to the variables.
In C#, the following are the built-in reference types −
Object Type
The Object Type is the ultimate base class for all data types in C# Common Type System (CTS). The object types can be assigned values of any other types, value types, reference types, predefined or user-defined types.
Example
object ob; ob = 250; // boxing
Dynamic Type
Store any type of value in the dynamic data type variable. Type checking for these types of variables takes place at run-time.
Example
dynamic d = 100;
String Type
The String Type allows you to assign any string values to a variable. The string type is an alias for the System.String class. It is derived from object type.
Example
String val = "Welcome!";
- Related Articles
- What are reference data types in Java?
- What are the data types, value types and reference types in C#?
- What are primitive data types in Java?
- What are primitive data types in JavaScript?
- What are enumerated data types in C++?
- What are Complex Data types in JavaScript?
- What are pointer data types in C#?
- What are nullable data types in C#?
- What are dynamic data types in C#?
- What are object data types in C#?
- What are JavaScript data types and data structures?
- What are different Perl Data Types?
- What are compound data types and data structures in Python?
- What are Standard Data Types in Python 3?
- What are fundamental data types in C++ programming?

Advertisements