c# - Static constructor overloading? -


i reading eric's blog series on static constructor , thought came in mind instance constructors can overloaded,why static constructor cannot overloaded? reason behind not providing same ?

because can never invoke static constructor directly; it's done implicitly runtime. therefore, can't pass parameters static constructor; therefore, possible static constructor 1 default parameters.


Comments

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -