I have a simple Enum
public enum TestEnum { TestOne = 3, TestTwo = 4 } var testing = TestEnum.TestOne;
And I want to retrieve
In my case, the problem was MyEnum not been found due to a + sign getting type from assembly (line 2):
var dll = System.Reflection.Assembly.LoadFile("pathToDll"); Type myEnum = dll.GetType("namespace+MyEnum"); System.Array myEnumValues = System.Enum.GetValues(myEnum);