Inheritance: IMonoStructType
Exemplo n.º 1
0
        public MonoClassType(MonoSymbolFile file, Cecil.TypeDefinition type)
            : base(file.MonoLanguage, TargetObjectKind.Class)
        {
            this.type = type;
            this.file = file;

            struct_type = new MonoStructType (file, this, type);

            if (type.GenericParameters.Count > 0) {
                StringBuilder sb = new StringBuilder (type.FullName);
                sb.Append ('<');
                for (int i = 0; i < type.GenericParameters.Count; i++) {
                    if (i > 0)
                        sb.Append (',');
                    sb.Append (type.GenericParameters [i].Name);
                }
                sb.Append ('>');
                full_name = sb.ToString ();
            } else
                full_name = type.FullName;

            DebuggerBrowsableState? browsable_state;
            MonoSymbolFile.CheckCustomAttributes (type,
                                  out browsable_state,
                                  out debugger_display,
                                  out type_proxy,
                                  out is_compiler_generated);
        }
Exemplo n.º 2
0
        public MonoGenericInstanceType(MonoClassType container, TargetType[] type_args,
						TargetAddress class_ptr)
            : base(container.File.MonoLanguage)
        {
            this.Container = container;
            this.type_args = type_args;
            this.class_ptr = class_ptr;

            struct_type = new MonoStructType (container.File, this, container.Type);

            StringBuilder sb = new StringBuilder (container.BaseName);
            sb.Append ('<');
            for (int i = 0; i < type_args.Length; i++) {
                if (i > 0)
                    sb.Append (',');
                sb.Append (type_args [i].Name);
            }
            sb.Append ('>');
            full_name = sb.ToString ();

            bool is_compiler_generated;
            DebuggerBrowsableState? browsable_state;
            MonoSymbolFile.CheckCustomAttributes (container.Type,
                                  out browsable_state,
                                  out debugger_display,
                                  out type_proxy,
                                  out is_compiler_generated);
        }
Exemplo n.º 3
0
        public MonoGenericInstanceType(MonoClassType container, TargetType[] type_args,
                                       TargetAddress class_ptr)
            : base(container.File.MonoLanguage)
        {
            this.Container = container;
            this.type_args = type_args;
            this.class_ptr = class_ptr;

            struct_type = new MonoStructType(container.File, this, container.Type);

            StringBuilder sb = new StringBuilder(container.BaseName);

            sb.Append('<');
            for (int i = 0; i < type_args.Length; i++)
            {
                if (i > 0)
                {
                    sb.Append(',');
                }
                sb.Append(type_args [i].Name);
            }
            sb.Append('>');
            full_name = sb.ToString();

            bool is_compiler_generated;
            DebuggerBrowsableState?browsable_state;

            MonoSymbolFile.CheckCustomAttributes(container.Type,
                                                 out browsable_state,
                                                 out debugger_display,
                                                 out type_proxy,
                                                 out is_compiler_generated);
        }
Exemplo n.º 4
0
        public MonoClassType(MonoSymbolFile file, Cecil.TypeDefinition type)
            : base(file.MonoLanguage, TargetObjectKind.Class)
        {
            this.type = type;
            this.file = file;

            struct_type = new MonoStructType(file, this, type);

            if (type.GenericParameters.Count > 0)
            {
                StringBuilder sb = new StringBuilder(type.FullName);
                sb.Append('<');
                for (int i = 0; i < type.GenericParameters.Count; i++)
                {
                    if (i > 0)
                    {
                        sb.Append(',');
                    }
                    sb.Append(type.GenericParameters [i].Name);
                }
                sb.Append('>');
                full_name = sb.ToString();
            }
            else
            {
                full_name = type.FullName;
            }

            DebuggerBrowsableState?browsable_state;

            MonoSymbolFile.CheckCustomAttributes(type,
                                                 out browsable_state,
                                                 out debugger_display,
                                                 out type_proxy,
                                                 out is_compiler_generated);
        }