Updated C# and .NET docs supplement (markdown)

James Groom 2024-07-23 17:29:12 +10:00
parent 3b4f19b6b7
commit 1694ce8dda
1 changed files with 7 additions and 0 deletions

@ -3,6 +3,13 @@ To save us repeating our complaints about the lack of proper documentation under
Contribute to [the official docs](https://github.com/dotnet/docs) if possible.
## BCL source
The API reference on Microsoft Learn (formerly MSDN) now links to the source in most places, but of course that's for modern .NET.
- For .NET Framework, use [the Reference Source](https://referencesource.microsoft.com) (or [via GitHub](https://github.com/microsoft/referencesource)).
- For Mono... [try this](https://github.com/mono/mono/tree/main/mcs/class/corlib) IDK.
- And for modern .NET where the links are missing, you can search the BCL [on GitHub like so](https://github.com/search?q=repo%3Adotnet%2Fruntime%20path%3Asrc%2Flibraries%2FSystem.Private.CoreLib%2Fsrc%2F**%2F*.cs&type=code).
## Const (byte/primitive) arrays
Not allowed as either array nor `Span`, despite string literals now effectively having the type `const ReadOnlySpan<char>`,