mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-06-28 15:29:10 +02:00
13 lines
256 B
C#
13 lines
256 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace MLEM.Misc {
|
|
public static class EnumHelper {
|
|
|
|
public static IEnumerable<T> GetValues<T>() {
|
|
return Enum.GetValues(typeof(T)).Cast<T>();
|
|
}
|
|
|
|
}
|
|
} |