Skip to content

Commit

Permalink
Merge branch 'main' into chore/#515_MakeSTJConditional
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalis authored Apr 28, 2024
2 parents 44a2daa + 7396d73 commit 68bd514
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/SmartEnum/SmartEnum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected SmartEnum(string name, int value) :
/// <typeparam name="TValue">The type of the inner value.</typeparam>
/// <remarks></remarks>
public abstract class SmartEnum<TEnum, TValue> :
ISmartEnum,
ISmartEnum,
IEquatable<SmartEnum<TEnum, TValue>>,
IComparable<SmartEnum<TEnum, TValue>>
where TEnum : SmartEnum<TEnum, TValue>
Expand Down Expand Up @@ -89,10 +89,7 @@ private static IEqualityComparer<TValue> GetValueComparer()
/// </summary>
/// <value>A <see cref="IReadOnlyCollection{TEnum}"/> containing all the instances of <see cref="SmartEnum{TEnum, TValue}"/>.</value>
/// <remarks>Retrieves all the instances of <see cref="SmartEnum{TEnum, TValue}"/> referenced by public static read-only fields in the current class or its bases.</remarks>
public static IReadOnlyCollection<TEnum> List =>
_fromName.Value.Values
.ToList()
.AsReadOnly();
public static IReadOnlyCollection<TEnum> List => _enumOptions.Value;

private readonly string _name;
private readonly TValue _value;
Expand Down

0 comments on commit 68bd514

Please sign in to comment.