create_type() protected method

protected create_type ( TargetMemoryAccess memory, TargetAddress klass ) : void
memory TargetMemoryAccess
klass TargetAddress
return void
コード例 #1
0
ファイル: MonoObjectType.cs プロジェクト: baulig/debugger
        public static MonoObjectType Create(MonoSymbolFile corlib, TargetMemoryAccess memory)
        {
            int object_size = 2 * memory.TargetMemoryInfo.TargetAddressSize;

            MonoObjectType type = new MonoObjectType (
                corlib, corlib.ModuleDefinition.Types ["System.Object"],
                object_size);

            TargetAddress klass = corlib.MonoLanguage.MetadataHelper.GetObjectClass (memory);
            type.create_type (memory, klass);

            return type;
        }
コード例 #2
0
        public static MonoObjectType Create(MonoSymbolFile corlib, TargetMemoryAccess memory)
        {
            int object_size = 2 * memory.TargetMemoryInfo.TargetAddressSize;

            MonoObjectType type = new MonoObjectType(
                corlib, corlib.ModuleDefinition.GetType("System.Object"),
                object_size);

            TargetAddress klass = corlib.MonoLanguage.MetadataHelper.GetObjectClass(memory);

            type.create_type(memory, klass);

            return(type);
        }