mirror of
https://github.com/Ellpeck/DynamicEnums.git
synced 2024-11-10 20:29:09 +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>.
|
||||
/// </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>()) {
|
||||
|
|
Loading…
Reference in a new issue