0Pricing
C# Academy · Lesson

Exploring Enums and Structs

Discover enums and structs to represent fixed sets of values and lightweight objects.

1

Exploring Enums and Structs

Welcome to the next lesson! In this lesson, you’ll learn about enums and structs in C#, their purposes, and how to use them to organize your code and manage data effectively. Let’s get started!

Exploring Enums and Structs — illustration 1

2

What is an Enum?

An enum (short for enumeration) is a value type that defines a set of named constants. It is used to make code more readable and manage related values.

Example: Days of the week, months, or status codes can be represented as enums.

All lessons in this course

  1. Introduction to Interfaces
  2. Abstract Classes
  3. Static Members and Methods
  4. Exploring Enums and Structs
  5. Delegates and Events
  6. Working with Collections: Lists, Dictionaries, and Queues
← Back to C# Academy