Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
What is use of static constructor in real time
November 23, 2009
What is use of static constructor in real time scenario. Can any one explain me use of static constructor?
Posted Date: November 26, 2009 Points: 5
Static constructor is used to initialize static data members as soon as the class is referenced first time. Through this we can restrict creating multiple objects for a class.
Singleton pattern is the best example for this. As you know each object occupies some space in memmory. But by this method we can reduce it. That means increase in perfomance.
Posted Date: November 30, 2009 Points: 5
The example yo can take is an banking application. The opening balance of every member is same. So it can be initialised inside static constructor.
Posted Date: February 27, 2010 Points: 5
check following link
To post reply
Related Questions Related Questions
Asp.net Real time Interview Questions
Real time example of multiple inheritance
Real time example of Multiple Inheritance in C#
Use of console application in real time
Sharepoint Online Training with real time projects in USA | UK | INDIA
.NET Online Training with real time projects Worldwide
Teradata Online Training with real time scenarios/projects Worldwide
Best SAP BWBI Online Training with Real time project in India | UK | USA | Canada | Australia | Sing
how to display photo of members in gridview at run time?
one project are work in two member we are divide equal form we are join this form to one to copy to form dost not copy to form many time try to way but cannot copy how its copy or join for two form ?
Latest Forum Questions From The Same Category
Window Service C#.net not working properly
C# Onvif IP Camera Viewer NuGet package
Land Registry Business Gateway Webservice - reference the returned XMLDocument
Technology to be used for Finance Application
problem instal net framwork 4
I am looking for Dotnet developer opening in Middle level company.
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend