Inheritance: TargetEnumInfo
コード例 #1
0
ファイル: NativeEnumType.cs プロジェクト: baulig/debugger
        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);
        }
コード例 #2
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);
        }