Interviews2 answers
Can we make a Static Constructor Parameterized? Give Reason with your answer
2 Answers
No, it cannot be parametrized.Because user has no control on calling a static constructor.
AshishPosted Apr 23, 2014, 10:06 PM EDT
We can't make static constructor parameterized because its call by CLR when first time class initiate So CLR doesn't know what parameter and which type parameter so we can't pass parameter in static constructor.
Sandeep Singh ShekhawatPosted Nov 1, 2012, 12:43 AM EDT

