Second commit
This commit is contained in:
commit
36840f3ad4
999 files changed
+61364
No files matched your search
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Code.Infrastructure.Utils
|
||||
{
|
||||
// Source - https://stackoverflow.com/a/972323
|
||||
// Posted by JaredPar, modified by community. See post 'Timeline' for change history
|
||||
// Retrieved 2026-07-22, License - CC BY-SA 4.0
|
||||
// Thanks to him :)
|
||||
public static class EnumUtil {
|
||||
public static IEnumerable<T> GetValues<T>() {
|
||||
return Enum.GetValues(typeof(T)).Cast<T>();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user