Extend.NET.Enum 2024.9.9.1320

There is a newer version of this package available.
See the version list below for details.
dotnet add package Extend.NET.Enum --version 2024.9.9.1320                
NuGet\Install-Package Extend.NET.Enum -Version 2024.9.9.1320                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Extend.NET.Enum" Version="2024.9.9.1320" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Extend.NET.Enum --version 2024.9.9.1320                
#r "nuget: Extend.NET.Enum, 2024.9.9.1320"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Extend.NET.Enum as a Cake Addin
#addin nuget:?package=Extend.NET.Enum&version=2024.9.9.1320

// Install Extend.NET.Enum as a Cake Tool
#tool nuget:?package=Extend.NET.Enum&version=2024.9.9.1320                

Extend.NET.Enum

Last Updated: 2024-09-09 13:20:12

📖 Overview

Extend.NET.Enum is part of the Extend.NET suite, providing a collection of powerful and easy-to-use extension methods for Enum types in .NET applications. These extensions aim to simplify common tasks and enhance developer productivity.

🧰 Extension Methods

GetDescription

Gets the description of an enum value.

GetDisplayName

Gets the display name of an enum value.

GetEnumDescription

Gets the description of an enum value.

T

Creates a dictionary of enum values with their names as keys.

GetEnumIndex

Gets the index of the enum value in the enum definition order.

GetEnumNameByValue

Gets the name of the enum value by its underlying integer value.

GetEnumValueByIndex

Gets the enum value at the specified index.

GetEnumValueCount

Gets the count of values in the enum.

GetEnumValueFromInt

Converts an integer to its corresponding enum value.

GetEnumValueFromString

Converts a string to its corresponding enum value.

Min

Gets the range of integer values used in the enum.

GetEnumValues

Gets all values of the enum as a list.

GetFlags

Gets all flags set in the enum value.

GetName

Gets the name of the enum value.

GetNames

Gets an array of the names of all the constants in the specified enumeration.

GetNextValue

Gets the next value in the enum, or the first value if the current value is the last one.

GetPreviousValue

Gets the previous value in the enum, or the last value if the current value is the first one.

GetRandomValue

Gets a random value from the enum.

GetUnderlyingType

Gets the underlying type of the enum.

GetValues

Gets an array of all values of the specified enum type.

HasFlag

Determines whether the enum value has the specified flag.

IsDefined

Determines whether the specified value exists in the enum.

IsDefinedName

Determines whether the specified name exists in the enum.

IsEnumFlagSet

Checks if a specific flag is set in the enum value.

IsEnumValueInRange

Checks if the given integer value is within the range of defined enum values.

IsValidEnumValue

Checks if the given value is a valid enum value for the specified enum type.

Parse

Parses a string to the specified enum type.

ParseIgnoreCase

Parses a string to the enum value, ignoring case.

ToInt

Converts the enum value to its underlying integer value.

ToList

Converts an enum type to a list of its values.

ToLong

Converts the enum value to its underlying long value.

ToStringFast

Converts the enum value to its string representation using a cached approach for better performance.

TryParse

Tries to parse a string to the specified enum type.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2024.9.9.1414 131 9/9/2024
2024.9.9.1402 131 9/9/2024
2024.9.9.1338 119 9/9/2024
2024.9.9.1335 115 9/9/2024
2024.9.9.1320 120 9/9/2024
2024.9.9.1225 123 9/9/2024
2024.9.9.1052 119 9/9/2024
2024.9.9.1044 122 9/9/2024