mirror of
https://github.com/Ellpeck/DynamicEnums.git
synced 2024-12-22 20:29:23 +01:00
small documentation fix
This commit is contained in:
parent
baa0b8e5f8
commit
eb944df3de
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ namespace DynamicEnums {
|
||||||
/// Note that this method is a version-independent equivalent of .NET 5's <c>Enum.GetValues<TEnum></c>.
|
/// Note that this method is a version-independent equivalent of .NET 5's <c>Enum.GetValues<TEnum></c>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="T">The type whose enum to get</typeparam>
|
/// <typeparam name="T">The type whose enum to get</typeparam>
|
||||||
/// <returns>An enumerable of the values of the enum, in declaration order.</returns>
|
/// <returns>An enumerable of the values of the enum, in ascending value order.</returns>
|
||||||
public static T[] GetValues<T>() where T : struct, Enum {
|
public static T[] GetValues<T>() where T : struct, Enum {
|
||||||
#if NET6_0_OR_GREATER
|
#if NET6_0_OR_GREATER
|
||||||
return Enum.GetValues<T>();
|
return Enum.GetValues<T>();
|
||||||
|
@ -25,7 +25,7 @@ namespace DynamicEnums {
|
||||||
/// Returns an array containing all of the values of the given enum type, excluding any explicitly defined combined flags.
|
/// Returns an array containing all of the values of the given enum type, excluding any explicitly defined combined flags.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="T">The type whose enum to get.</typeparam>
|
/// <typeparam name="T">The type whose enum to get.</typeparam>
|
||||||
/// <returns>An enumerable of the values of the enum, in declaration order, excluding combined flags.</returns>
|
/// <returns>An enumerable of the values of the enum, in ascending value order, excluding combined flags.</returns>
|
||||||
public static IEnumerable<T> GetUniqueValues<T>() where T : struct, Enum {
|
public static IEnumerable<T> GetUniqueValues<T>() where T : struct, Enum {
|
||||||
var used = 0L;
|
var used = 0L;
|
||||||
foreach (var value in EnumHelper.GetValues<T>()) {
|
foreach (var value in EnumHelper.GetValues<T>()) {
|
||||||
|
|
Loading…
Reference in a new issue