EnumHelper

Helpers & Utilities · AiDotNet.Helpers

Provides utility methods for working with enumeration types.

For Beginners

This helper class contains methods that make it easier to work with enums in C#.

An enum (short for “enumeration”) is a special type in programming that represents a set of named constants. Think of it like a predefined list of options.

For example, if you have an enum for DaysOfWeek, it might contain: Monday, Tuesday, Wednesday, etc.

This helper class provides methods to get all the values from an enum, which can be useful when you need to process all possible options or present them to a user.

Methods

Method Summary
List<T> GetEnumValues(string ignoreName) Gets all values from an enum type as a list, with an option to ignore a specific value.