📜  静态初始化器 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:00.687000             🧑  作者: Mango

代码示例1
Static blocks or static initializers are used to initalize static fields in java 
we declare static blocks when we
want to intialize static fields in our class. 
Static blocks gets executed exactly once when the class is loaded
Static blocks are executed even before the constructors are executed.