What is static Constructor?

Answer Posted / manikanta.srinu

1.static constructor is execute only once while class is
loaded into memory.
2.static constructor use only static variables.
3.static constructor is a paramaterless constructor.
4.Can't use access modifiers on static constructor.
5.We can't create instence for static constructor.

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 boxing and unboxing? Does it occure automaatically or you need to write code to box and unbox?

530


Define a managed code? : Dot net architecture

503


inprocess vs out process session state : Dot net architecture

516


What is the difference between an event and a delegate?

523


Define cache coherency? : Dot net architecture

572






What are bindings?

552


Explain the difference between primary & secondary storage device? : .NET Architecture

527


What is .net mobile input validation. Explain with an example? : Microsoft dot net mobile

525


Explain dotnet framework ?

521


Can you explain atlasuiglitz library?

521


I am working with asp.net 2005 and Crystal report 10. I have an image field on my dataset to show on Crystal report.And the image is shows dynamically from database in image field of CR. The image field is showing well on my Crystal report on its first page with all other data but when i click to open second page of CR,it does not show any data on that.I found that this is because of adding the image field on crystal report. Because when i remove the image field from the CR then it will run both the pages of CR. I am using the Page Load event to bind CR data with Database. And i have already check with the Init event to bind CR , but it still not shows the data on second page when i use image field on that. Please give solution for that.....

1462


What is the purpose of cache? : Dot net architecture

532


How does .net mobile work? : Microsoft dot net mobile

507


4. Wcf- what Asych and Sych call and how that works

1434


What is cache coherency? : Dot net architecture

486