refactor: Modernize samples
PR Details
Modernize the samples.
I did not enable the nullable feature since it isn't the case yet in the whole codebase. I also excluded the C# tutorials projects (beside using file scope namespaces) because we might to use a different style for them that is more beginner friendly.
Types of changes
- [x] Docs change / refactoring / dependency upgrade
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
- [ ] My change requires a change to the documentation.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
- [ ] I have built and run the editor to try this change out.
We have a problem: the integrated code editor in the GameStudio is old and doesn't understand modern C#. It's thinking all modern lines of code are incorrect.
For example :
Therefore, we can't modernize the samples before we update (or get rid of) the code editor.
the code editor uses roslyn of net6 the latest roslynpad would understand it
but updating it isnt as easy..