예제 #1
0
        private DkmClrValue GetFunctionPointerField(DkmClrValue value, string fieldName)
        {
            var valueType  = value.Type.GetLmrType();
            var fieldInfo  = valueType.GetField(fieldName, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
            var fieldValue = fieldInfo.GetValue(value.RawValue);

            return(CreateDkmClrValue(DkmClrValue.UnboxPointer(fieldValue), new DkmClrType(FunctionPointerType.Instance)));
        }