mono_field_get_value返回错误的值

时间:2019-02-17 08:37:44

标签: c++ mono

import { smth } from './utility';
import { smth as Smth } from './utility';
import * as bundled from './utility';

我正在尝试使用此代码获取静态字段MonoDomain* domain = gm_sdk->mono_get_root_domain(); MonoReflectionField* r_field = gm_sdk->mono_field_get_object(domain, coin->second[0]->parent, coin->second[0]); MonoObject object = r_field->object; long field_value; gm_sdk->mono_field_get_value(&object, coin->second[0], &field_value); res += std::to_string(field_value); ,但它却提供了System.Int64.MaxValue

0 个答案:

没有答案