Our great sponsors
-
referencesource
Source from the Microsoft .NET Reference Source that represent a subset of the .NET Framework
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
sscli_20021101
Discontinued Version 1.0 Date Published: 11/05/2002. The Shared Source CLI is a compressed archive of the source code to a working implementation of the ECMA CLI and the ECMA C# language specification. This implementation builds and runs on Windows XP, the FreeBSD operating system, and Mac OS X 10.2.
Actually, the official Microsoft code style is the dumb one. It was developed by non-developers to be "readable" but wastes a lot of vertical space, which, considering ubiquitous wide screens, is really dumb. The official code style isn't even used by Microsoft developers internally. Have a look at the .NET reference code; It's almost uniformly K&R style: https://referencesource.microsoft.com
I obviously dont know whats actually behind referencesource nor how it works, but some really old .net code is found here at least: https://github.com/SSCLI/sscli_20021101/blob/master/clr/src/bcl/system/string.cs
Some day when all c# projects use https://github.com/belav/csharpier then we can never comment on styling again. Except of course in the issues on csharpier itself. Or when new versions of c# add new syntax that csharpier now needs to support.