---
title: "C# Dictionary: Using Dictionary with Primitive Types"
content_type: tutorial
url: "https://learn.unity.com/tutorial/c-dictionary-using-dictionary-with-primitive-types?language=en"
language: en
difficulty: intermediate
duration_minutes: 10
unity_version:
  - "2019.3"
  - "2019.2"
  - "2019.1"
  - "2018.4"
  - "2018.3"
  - "2018.2"
  - "2018.1"
  - "2017.4"
  - "2017.3"
  - "2017.2"
  - "2017.1"
supported_unity_versions:
  - name: "2019.3"
    url: "https://learn.unity.com/tutorial/c-dictionary-using-dictionary-with-primitive-types.md?language=en&version=2019.3"
  - name: "2019.2"
    url: "https://learn.unity.com/tutorial/c-dictionary-using-dictionary-with-primitive-types.md?language=en&version=2019.2"
  - name: "2019.1"
    url: "https://learn.unity.com/tutorial/c-dictionary-using-dictionary-with-primitive-types.md?language=en&version=2019.1"
  - name: "2018.4"
    url: "https://learn.unity.com/tutorial/c-dictionary-using-dictionary-with-primitive-types.md?language=en&version=2018.4"
  - name: "2018.3"
    url: "https://learn.unity.com/tutorial/c-dictionary-using-dictionary-with-primitive-types.md?language=en&version=2018.3"
  - name: "2018.2"
    url: "https://learn.unity.com/tutorial/c-dictionary-using-dictionary-with-primitive-types.md?language=en&version=2018.2"
  - name: "2018.1"
    url: "https://learn.unity.com/tutorial/c-dictionary-using-dictionary-with-primitive-types.md?language=en&version=2018.1"
  - name: "2017.4"
    url: "https://learn.unity.com/tutorial/c-dictionary-using-dictionary-with-primitive-types.md?language=en&version=2017.4"
  - name: "2017.3"
    url: "https://learn.unity.com/tutorial/c-dictionary-using-dictionary-with-primitive-types.md?language=en&version=2017.3"
  - name: "2017.2"
    url: "https://learn.unity.com/tutorial/c-dictionary-using-dictionary-with-primitive-types.md?language=en&version=2017.2"
  - name: "2017.1"
    url: "https://learn.unity.com/tutorial/c-dictionary-using-dictionary-with-primitive-types.md?language=en&version=2017.1"
last_updated: "2026-08-04T14:22:25.000Z"
---

# C# Dictionary: Using Dictionary with Primitive Types

Practice using C# dictionaries with primitive types to store and manage data flexibly.

 In this tutorial, you will use dictionaries with several of the primitive types and explore its flexibility in storing data.

## C# Dictionary: Using Dictionary with Primitive Types

[Video](https://connect-mediagw.unity.com/h1/20190530/videos/6e2165bc-20c6-4ce6-9cfe-45c1c15abccd_04_Dictionary_with_Primitive_Types.mp4) ([Transcript (en)](https://connect-mediagw.unity.com/h1/20200311/965f3fa1-0f32-4be4-aaff-f074b9c09784_04_Dictionary_with_Primitive_Types.vtt))
