This works perfectly fine with AoT:
var writeLine = typeof(Console).GetMethod("WriteLine", [typeof(string)]);
writeLine.Invoke(null, ["Hello world"]);
As you can see, there are no UnsafeAccessorAttribute's. Plain old reflection that just works (why should it not?)