"Module Initializer Example"

static class TypeDependencyResolver {
	[ModuleInitializer]
	public static void ResolveGraph() {
		// Do stuff here
	}
}


Code snippet taken from "Two Decades of C#: A Reference - C# 9".