small documentation fix

This commit is contained in:
Ell 2024-08-09 22:44:28 +02:00
parent baa0b8e5f8
commit eb944df3de

View file

@ -12,7 +12,7 @@ namespace DynamicEnums {
/// Note that this method is a version-independent equivalent of .NET 5's <c>Enum.GetValues&lt;TEnum&gt;</c>.
/// </summary>
/// <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 {
#if NET6_0_OR_GREATER
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.
/// </summary>
/// <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 {
var used = 0L;
foreach (var value in EnumHelper.GetValues<T>()) {