Akshay Patel
Can we make a Static Constructor Parameterized? Give Reason with your answer
By Akshay Patel in C# on Oct 25 2012
  • Ashish
    Apr, 2014 24

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

    • 0
  • Sandeep Singh Shekhawat
    Nov, 2012 1

    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.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS