Add loads of improvements (medium to micro improvements)
This pull request will just add improvements and any new features.
Checklist before requesting a review
[x] I have performed a self-review of my code
[x] I have re-run all unit tests and all passed.
Premise
Over time, the project needs to get updated and the code needs to be rewritten based on new features of .NET and C#. This PR will use and update this project to the latest best practices suggested by Microsoft.
Changes
Add a .editorconfig file to maintain consistent coding styles
Add Directory.Build.props to customize common settings for all projects in a solution
Change namespace style from Block Scoped to File Scoped
Decreased warning from 300ish to 7 warning
Enable the Nullable feature and eliminate all possible null exceptions
Use SonarAnalyzer.CSharp to analyse the whole solution and rectify all suggested issues
Add more documentation to all public classes
Apply encapsulation rules more strictly, by making classes internal instead of public
Update netstandard2.0 to netstandard2.1 in order to support most new features
Remove redundant code especially this. to improve the readability of the code
Add loads of improvements (medium to micro improvements)
This pull request will just add improvements and any new features.
Checklist before requesting a review
Premise
Over time, the project needs to get updated and the code needs to be rewritten based on new features of .NET and C#. This PR will use and update this project to the latest best practices suggested by Microsoft.
Changes
.editorconfig
file to maintain consistent coding stylesDirectory.Build.props
to customize common settings for all projects in a solutionNullable
feature and eliminate all possible null exceptionsSonarAnalyzer.CSharp
to analyse the whole solution and rectify all suggested issuesinternal
instead ofpublic
netstandard2.0
tonetstandard2.1
in order to support most new featuresthis.
to improve the readability of the code