Give 2 scenarios where static constructors can be used?
Answer / Nikunj Kumar
"1) When a class needs to perform some initialization before any instances of the class are created. 2) When a class has dependencies on other classes, and these dependencies need to be initialized before the class itself."
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a dynamic assembly?
Can you specify nested classes as partial classes?
What is tpl in c#?
What is semaphore in c#?
In which way a two-dimensional array declared in C#?
What is reference types in c#?
Can property defined in Interface.
What are the different types of comments in c#?
What is Interface? Explain with an example.
What is anonymous class in c#?
Can we inherit a private class in chsarp? how? explain(with code) ?
What is CASPOL?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)