Closed JaXt0r closed 2 weeks ago
protected bool isTest2; <-- Needs to be PascalCase like every non-private field
Hmm, I find that a bit weird, since then you still can't immediately tell the difference between a local variable and a member. The difference between private and protected isn't very relevant in the code, but the difference between local and member is. I find it clearest this way:
PublicMember _privateMember localVariable
protected bool isTest2; <-- Needs to be PascalCase like every non-private field
Hmm, I find that a bit weird, since then you still can't immediately tell the difference between a local variable and a member. The difference between private and protected isn't very relevant in the code, but the difference between local and member is. I find it clearest this way:
PublicMember _privateMember localVariable
Yep. 100%. I didn't phrase it properly. But meant the same outcome as you said:
public PascalCase; protected PascalCase; private _underscoreCase; Local: camelCase;
Please review briefly:
(optional) Test the same warnings with VS22
[ ] 1.![image](https://github.com/Gothic-UnZENity-Project/Gothic-UnZENity/assets/120568393/83736bd0-ce5b-4a5e-9c27-74e5a8339ffc)
private bool isTest;
<-- Needs to be underscored[ ] 2.![image](https://github.com/Gothic-UnZENity-Project/Gothic-UnZENity/assets/120568393/da8fe2f2-ebbf-4604-99cd-e040f5532afd)
protected bool isTest2;
<-- Needs to be PascalCase like every non-private fieldOut-of-scope: