public int NewObject(CorDebugFunction constructor, ReadOnlySpan <CorDebugValue> args) { using var pArgs = NativeArray.AllocCom(args); using var pConstructor = constructor?.AcquirePointer(); return(Calli(_this, This[0]->NewObject, pConstructor, (void **)pArgs)); }
public int CallFunction(CorDebugFunction function, ReadOnlySpan <CorDebugValue> args) { using var pArgs = NativeArray.AllocCom(args); using var pFunction = function?.AcquirePointer(); return(Calli(_this, This[0]->CallFunction, pFunction, (void **)pArgs)); }