 I think you can use `inline static methods` with function pointers and it will avoid boilerplate of creating classes as C# does not have inline classes.