Going from Java
to C#
I have the following question:
In java I could do the following:
public class Application {
static int attrib
I find something else useful. If your variable needs more than one expressions/statements to initialize, use this!
static A a = new Func(() => {
// do it here
return new A();
})();
This approach is not limited on classes.