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
Post a Comment