Updated C# and .NET docs supplement (markdown)

James Groom 2024-11-01 12:00:52 +10:00
parent 341f00013a
commit 3afb125b92
1 changed files with 4 additions and 0 deletions

@ -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: