Errors Can Be Found Underneath the Code!
The Base Code:
XDevkit.IXboxDebugTarget.GetMemory(uint, uint, byte[], out uint)
What I have
Since the third argument to GetMemory is expecting a byte array, and your num3 variable is a byte array, you should just pass it as num3
num3
As for Encoding not existing in the current context, you are likely just missing using System.Text
using System.Text