2
Reply

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

Akshay Patel

Akshay Patel

Oct 25, 2012
2k
0

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

    Ashish
    April 24, 2014
    0

    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 Shekhawat
    November 01, 2012
    0