Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnUIThread-Refactor and a few improvements #963

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

K4PS3
Copy link

@K4PS3 K4PS3 commented Jan 14, 2025

This pull request to improve parts of the codebase for better readability and to fix the compiler warnings.
I think this pull request should be easy to review since the changes in the files are at minimum.
The code in "Platforms" can be improved, but will need extra work to be done.

You can take notes from this pull request without merging it, I don't mind that.

Summary of changes:

SafeRun in Action

SafeRun

Regex Documentation

regex

…gedBase.cs) to remove code duplication.

- Added documentation in (RegExHelper.cs) for NameRegEx (Hover over NameRegEx to see the result).
- Changed action variables to Local functions.
- Changed nested private classes to be sealed.
- Inlined the out parameters.
- Used Pattern matching whenever applicable.
- Used Compound assignment whenever applicable.
- Used nameof to avoid magic strings.
- Removed this Keyword whenever possible.
- Removed Zombie code.
- Removed unnecessary using directives.
- Remoced #region preprocessor directives.
- Reformat Curly Braces
- Fixed couple of typos.
Copy link
Member

@vb2ae vb2ae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this. Thank you for fixing the typos in the comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants