public MaterialEnumDrawer(string enumName) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type MaterialEnumDrawer.\u003CMaterialEnumDrawer\u003Ec__AnonStorey97 drawerCAnonStorey97 = new MaterialEnumDrawer.\u003CMaterialEnumDrawer\u003Ec__AnonStorey97(); // ISSUE: reference to a compiler-generated field drawerCAnonStorey97.enumName = enumName; // ISSUE: explicit constructor call base.\u002Ector(); System.Type[] array = ((IEnumerable<Assembly>) AppDomain.CurrentDomain.GetAssemblies()).SelectMany<Assembly, System.Type>((Func<Assembly, IEnumerable<System.Type>>) (x => (IEnumerable<System.Type>) AssemblyHelper.GetTypesFromAssembly(x))).ToArray<System.Type>(); try { // ISSUE: reference to a compiler-generated method System.Type enumType = ((IEnumerable<System.Type>) array).FirstOrDefault<System.Type>(new Func<System.Type, bool>(drawerCAnonStorey97.\u003C\u003Em__181)); this.names = Enum.GetNames(enumType); Array values = Enum.GetValues(enumType); this.values = new int[values.Length]; for (int index = 0; index < values.Length; ++index) this.values[index] = (int) values.GetValue(index); } catch (Exception ex) { // ISSUE: reference to a compiler-generated field Debug.LogWarningFormat("Failed to create MaterialEnum, enum {0} not found", (object) drawerCAnonStorey97.enumName); throw; } }
public MaterialEnumDrawer(string enumName) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type MaterialEnumDrawer.\u003CMaterialEnumDrawer\u003Ec__AnonStorey97 drawerCAnonStorey97 = new MaterialEnumDrawer.\u003CMaterialEnumDrawer\u003Ec__AnonStorey97(); // ISSUE: reference to a compiler-generated field drawerCAnonStorey97.enumName = enumName; // ISSUE: explicit constructor call base.\u002Ector(); System.Type[] array = ((IEnumerable <Assembly>)AppDomain.CurrentDomain.GetAssemblies()).SelectMany <Assembly, System.Type>((Func <Assembly, IEnumerable <System.Type> >)(x => (IEnumerable <System.Type>)AssemblyHelper.GetTypesFromAssembly(x))).ToArray <System.Type>(); try { // ISSUE: reference to a compiler-generated method System.Type enumType = ((IEnumerable <System.Type>)array).FirstOrDefault <System.Type>(new Func <System.Type, bool>(drawerCAnonStorey97.\u003C\u003Em__181)); this.names = Enum.GetNames(enumType); Array values = Enum.GetValues(enumType); this.values = new int[values.Length]; for (int index = 0; index < values.Length; ++index) { this.values[index] = (int)values.GetValue(index); } } catch (Exception ex) { // ISSUE: reference to a compiler-generated field Debug.LogWarningFormat("Failed to create MaterialEnum, enum {0} not found", (object)drawerCAnonStorey97.enumName); throw; } }