From 1694ce8dda9692f2344fce291864c210e37cb8b1 Mon Sep 17 00:00:00 2001 From: James Groom Date: Tue, 23 Jul 2024 17:29:12 +1000 Subject: [PATCH] Updated C# and .NET docs supplement (markdown) --- C#-and-.NET-docs-supplement.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/C#-and-.NET-docs-supplement.md b/C#-and-.NET-docs-supplement.md index 870992f..0b743d7 100644 --- a/C#-and-.NET-docs-supplement.md +++ b/C#-and-.NET-docs-supplement.md @@ -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`,