Implement missing dotnet7 interop for field and stabilize interop
This commit is contained in:
@@ -1163,8 +1163,8 @@ MType* MField::GetType() const
|
||||
|
||||
int32 MField::GetOffset() const
|
||||
{
|
||||
MISSING_CODE("TODO: MField::GetOffset"); // TODO: MField::GetOffset
|
||||
return 0;
|
||||
static void* FieldGetOffsetPtr = GetStaticMethodPointer(TEXT("FieldGetOffset"));
|
||||
return CallStaticMethod<int32, void*>(FieldGetOffsetPtr, _handle);
|
||||
}
|
||||
|
||||
void MField::GetValue(MObject* instance, void* result) const
|
||||
@@ -1175,8 +1175,8 @@ void MField::GetValue(MObject* instance, void* result) const
|
||||
|
||||
MObject* MField::GetValueBoxed(MObject* instance) const
|
||||
{
|
||||
MISSING_CODE("TODO: MField::GetValueBoxed"); // TODO: MField::GetValueBoxed
|
||||
return nullptr;
|
||||
static void* FieldGetValueBoxedPtr = GetStaticMethodPointer(TEXT("FieldGetValueBoxed"));
|
||||
return CallStaticMethod<MObject*, void*, void*>(FieldGetValueBoxedPtr, instance, _handle);
|
||||
}
|
||||
|
||||
void MField::SetValue(MObject* instance, void* value) const
|
||||
|
||||
Reference in New Issue
Block a user