From f6581cc981931d7dedfe78ff5b4b576d9119d3a5 Mon Sep 17 00:00:00 2001 From: James Groom Date: Wed, 8 Feb 2023 06:57:01 +1000 Subject: [PATCH] Updated C# and .NET docs supplement (markdown) --- C#-and-.NET-docs-supplement.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/C#-and-.NET-docs-supplement.md b/C#-and-.NET-docs-supplement.md index 789a42d..5f3aa4f 100644 --- a/C#-and-.NET-docs-supplement.md +++ b/C#-and-.NET-docs-supplement.md @@ -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 \ No newline at end of file +TODO euler diagram + +## WinForms `Control.ResumeLayout` footgun + +```csharp +// works +groupBox.ResumeLayout(performLayout: false); +groupBox.PerformLayout(); +// breaks subtly +groupBox.ResumeLayout(performLayout: true); +``` \ No newline at end of file