Since the compiler will automatically invoke the base type's no-argument constructor, there's no need to specify its invocation explicitly. Also, when only a single ``++public++`` parameterless constructor is defined in a class, then that constructor can be removed because the compiler would generate it automatically. Similarly, empty ``++static++`` constructors and empty destructors are also wasted keystrokes.
\[~ann.campbell.2] I adjusted the description a bit.
=== on 20 Jul 2015, 14:12:01 Ann Campbell wrote:
looks good [~tamas.vajk]
=== on 20 May 2021, 10:24:19 Costin Zaharia wrote:
We might need to reconsider the recommendation for static constructors since even if empty they do change the generated IL and the runtime behavior. See: https://csharpindepth.com/articles/BeforeFieldInit[C# and beforefieldinit]