Updated C# and .NET docs supplement (markdown)

James Groom 2023-02-08 06:57:01 +10:00
parent ebf1a709c7
commit f6581cc981
1 changed files with 11 additions and 1 deletions

@ -34,4 +34,14 @@ If an object being the wrong type is *exceptional*—the method can't handle it
`class` in `where` clauses does not mean "not abstract", it means "reference type". Similarly, `struct` means "value type". There's a lot of complexity re: nullability, so [check the docs](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/generics/constraints-on-type-parameters) if you're writing a generic method.
TODO euler diagram
TODO euler diagram
## WinForms `Control.ResumeLayout` footgun
```csharp
// works
groupBox.ResumeLayout(performLayout: false);
groupBox.PerformLayout();
// breaks subtly
groupBox.ResumeLayout(performLayout: true);
```