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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -