2
Reply

Can we make a Static Constructor Parameterized? Give Reason with your answer

Akshay Patel

Akshay Patel

12y
2k
0
Reply

    No, it cannot be parametrized.Because user has no control on calling a static constructor.

    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.