Expression body syntax or statement bodies? #11
Labels
code quality
Improvements to code style, structure, or coverage without adding new features or fixing bugs.
documentation
Improvements or additions to documentation
In
.editorconfig
it's set tocsharp_style_expression_bodied_methods = false:suggestion
However, in
build/.editorconfig
this is set tocsharp_style_expression_bodied_methods = true
Which one is preferred and why? In what cases?
I ask because I can see most methods use a statement body while not always necessary, but for example in https://github.com/dendrodocs/dotnet-shared-lib/blob/main/src/DendroDocs.Shared/Descriptions/TypeDescription.cs expression bodies are used.
The text was updated successfully, but these errors were encountered: