Hi Young,
简短回答下你的问题。
静态成员会在类第一次被使用的时候被初始化,这个使用包括访问类的静态成员或者使用类的构造方法来创建类的实例等。详情请参考@亂馬客 提供的文档。
Best Regards,
Li Wang
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.