Languages
[Edit]
EN

C#/.NET - static constructor

11 points
Created by:
Elleanor-Williamson
380

In C#/.NET static constructor can be created with static keyword.

Edit

Output:

Note: static constructor is called only once during first class usage.

References:

Edit
  1. Static Constructor - Microsoft Docs
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join