public NativeEnumType(Language language, string name, int size, string[] element_names, int[] element_values) : base(language) { this.name = name; this.size = size; this.element_names = element_names; this.element_values = element_values; members = new NativeEnumInfo [element_names.Length]; for (int i = 0; i < element_names.Length; i++) members [i] = new NativeEnumInfo ( this, element_names [i], i, element_values [i]); value = new NativeEnumInfo (language.IntegerType, "__value", 0, 0); }
public NativeEnumType(Language language, string name, int size, string[] element_names, int[] element_values) : base(language) { this.name = name; this.size = size; this.element_names = element_names; this.element_values = element_values; members = new NativeEnumInfo [element_names.Length]; for (int i = 0; i < element_names.Length; i++) { members [i] = new NativeEnumInfo( this, element_names [i], i, element_values [i]); } value = new NativeEnumInfo(language.IntegerType, "__value", 0, 0); }