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
What is the use of static members with example using c#.net.
What is the use of properties window?
How many bytes is an int c#?
Explain polymorphism in c# with a simple example?
How do you remove white spaces from a string?
Is it possible to have a static indexer in c#? Allowed in c#.
What is a value type in c#?
What is an object and a class?
What is thread in c#?
What is static class in C#?
What is multiple interface in c#?
What is managed or unmanaged code?
Difference between StackPanel and RelativePanel ?
Explain how do you convert a value-type to a reference-type?
How do you sort a list in c#?