From 3afb125b9291d7c1219f95f91c541d80e3bdb733 Mon Sep 17 00:00:00 2001 From: James Groom Date: Fri, 1 Nov 2024 12:00:52 +1000 Subject: [PATCH] Updated C# and .NET docs supplement (markdown) --- C#-and-.NET-docs-supplement.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/C#-and-.NET-docs-supplement.md b/C#-and-.NET-docs-supplement.md index aabb03b..bee06ce 100644 --- a/C#-and-.NET-docs-supplement.md +++ b/C#-and-.NET-docs-supplement.md @@ -104,6 +104,10 @@ If a string literal contains a date, *even if it's being deserialised to a strin .NET will happily include NUL (`(char) 0`) in a string if you use `String..ctor(char[])`. WinForms' `Label.Text` stops reading at the first NUL for measurement/rendering, at least under Mono. +## `[Obsolete]` only works on base declarations + +See [dotnet/csharplang#2652](https://github.com/dotnet/csharplang/issues/2652). + ## Preprocessor TFM constants and .NET Standard The table [here](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/preprocessor-directives#conditional-compilation) is good for reference, but mind the note hidden at the bottom: