Can Static Constructor be Overloaded?Justify it?

Answer Posted / nishant

No Way..it can not be overloaded as it won't accept any parameter.
In case you try to provide any parameter in the static constructor it will give you following error ...

Error : " a static constructor must be parameterless"

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Peek method in Tempdata in ASP.Net MVC?

596


Can you set the unlimited length for "maxjsonlength" property in config?

557


What is .net architecture?

542


What is session state management?

563


What is the 'page life cycle' of an ASP.NET MVC?

604






What is viewbag?

612


What is entity framework used for?

519


What is needed for running an application built on winfx on the .net framework 3.0?

512


What is viewstart page in mvc?

570


How to bind table colum with gridview column?

609


When using razor views, do you have to take any special steps to protect your asp.net mvc application from cross site scripting (xss) attacks?

697


How we can call a JavaScript function on the change of a Dropdown List in ASP.Net MVC?

558


how can you tell ef to have a different table or column name than that defined for the class?

568


Where are the routing rules defined in an asp.net mvc application?

542


Explain the difference between viewbag and viewdata in mvc?

537