tidy silly Enum.GetValues type nonsense

This commit is contained in:
Chris Forbes
2011-12-31 11:02:38 +13:00
parent 004c59d273
commit 809b716d0d
4 changed files with 5 additions and 4 deletions

View File

@@ -208,5 +208,6 @@ namespace OpenRA
public static class Enum<T>
{
public static T Parse(string s) { return (T)Enum.Parse(typeof(T), s); }
public static T[] GetValues() { return (T[])Enum.GetValues(typeof(T)); }
}
}