c# - Why a Static Constructors do not have any parameters -


as per msdn:

a static constructor not take access modifiers or have parameters.

a static constructor called automatically initialize class before first instance created or static members referenced.

a static constructor cannot called directly.

can 1 please explain why static constructor can not have parameters.

as msdn says, a static constructor called automatically initialize class before first instance created. therefore can't send parameters.

if clr must call static constructor how know parameters pass it?


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -