When static constructor is invoked?

Answer Posted / abhay k pandey

Static constructors can invoke mainly at two ocasions
1. Just before the first instance of the class is created [
in case this static contructor is there in non static class]
2. At the time any static member is accessed [ in case of
either static or non static classes ]

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a must for multitasking

648


What are the uses of delegates in c#?

670


What is razor view in c#?

522


How does bitwise work?

597


Is string nullable in c#?

549






What is a dbml?

589


How does the clr work?

583


Which debugging tools you can use in the .NET ssSDK?

635


Is datetime nullable c#?

581


Which is faster abstract class or interface in c#?

637


Are tuples mutable c#?

572


Are enums static c#?

580


How do I open the console window?

649


Define using statement in c#?

602


What is sqladapter c#?

628