I forgot about this issue, but I updated all examples to be compatible with AOT.
Remove unnecessary code from RDG samples.
And more can likely be removed from many of these samples
I decided not to remove the code, but instead add the code in the remaining examples.
The main reason is that this is about native AOT, and some of the examples were shorter but didn't compile with AOT enabled. I also checked that each example compiles and runs.
Let me know what you think @Rick-Anderson .
If this is the way to go, we also need to update the highlights because of the added lines (I can do that if you want).
If you do prefer to remove the unnecessary code, I'll revert these changes and update the examples to remove the serializer everywhere.
I don't want to put extra work in your bucket, so if you feel like the examples are good feel free to close this PR without any hard feelings 😊.
I forgot about this issue, but I updated all examples to be compatible with AOT.
I decided not to remove the code, but instead add the code in the remaining examples. The main reason is that this is about native AOT, and some of the examples were shorter but didn't compile with AOT enabled. I also checked that each example compiles and runs.
Let me know what you think @Rick-Anderson . If this is the way to go, we also need to update the highlights because of the added lines (I can do that if you want).
If you do prefer to remove the unnecessary code, I'll revert these changes and update the examples to remove the serializer everywhere.
I don't want to put extra work in your bucket, so if you feel like the examples are good feel free to close this PR without any hard feelings 😊.
Closes #201