A class or struct can only have one static constructor. Static constructors cannot be inherited or overloaded . A static constructor cannot be called directly and is only meant to be called by the common language runtime (CLR). It is invoked automatically.
Is constructor overloading possible for static class?
A class or struct can only have one static constructor. Static constructors cannot be inherited or overloaded . A static constructor cannot be called directly and is only meant to be called by the common language runtime (CLR). It is invoked automatically.