News for hackers. Stuff that matters.
Re:Who Needs Main() Anyway? by colejohnson66 on Sunday January 22, 2023 @01:48PM (#34480807)
It’s also the same in .NET. If your Main() function references types that have a static constructor, the constructors could run before Main().

It’s a surprising thing when one first discovers it, but it makes a lot of sense.

There are no comments on this comment yet.