Coding standards question #5237
-
Both String.Empty and string.Empty both compile but is one considered "more proper" than the other? If so, which one? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This question is out of scope for csharplang. Questions about style are inherently up to you. You can also use tools like style-cop, roslyn-analyzer, or roslyn itself to often specify which you want and have tools enforce that. For more questions like this, i recommend using one of the discord channels (like discord.gg/csharp). |
Beta Was this translation helpful? Give feedback.
-
this post (by @jaredpar) might give additional info about |
Beta Was this translation helpful? Give feedback.
this post (by @jaredpar) might give additional info about
string
andString
https://blog.paranoidcoding.com/2019/04/08/string-vs-String-is-not-about-style.html