Skip to content

Commit

Permalink
Exposed EnhancedEnumType's entries to derived clases.
Browse files Browse the repository at this point in the history
  • Loading branch information
pruiz committed Aug 21, 2022
1 parent b2683c4 commit 371a444
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions HermaFx.Foundation/DesignPatterns/EnhancedEnumType.cs 100755 → 100644
@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
Expand All @@ -14,6 +15,10 @@ public abstract class EnhancedEnumType<L, T> : ReadOnlyCollection<T>, IEnhancedE
private static T[] _entries = GetFields<L>();
#endregion

#region Properties
protected static IEnumerable<T> Entries => _entries;
#endregion

#region .ctors
static EnhancedEnumType()
{
Expand Down

0 comments on commit 371a444

Please sign in to comment.