.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
It's common C# convention to use BSD/Allman-style (the OP's first one) because Microsoft has used that convention for decades and recommends it (the C# coding conventions direct to the coding guidelines for the runtime on Github).
What .NET-related obscure errors have you encountered, and how did you solve them?
3 projects | reddit.com/r/dotnet | 22 Jan 2022
DotNext: Activator<T> & ISupplier<T>
1 project | reddit.com/r/dotnet | 23 Jan 2022
[Entity Framework Core][PostgreSQL][C#] Using long identifier
1 project | dev.to | 23 Jan 2022
.NET Framework 4.8 and .NET 6
3 projects | reddit.com/r/dotnet | 20 Jan 2022
Is .net framework 4.8 outdated?
2 projects | reddit.com/r/dotnet | 18 Jan 2022