static destructor

后端 未结 6 1718
情歌与酒
情歌与酒 2020-12-04 17:46

C# has static constructor which do some initialization (likely do some unmanaged resource initialization).

I am wondering if there is static destructor?

6条回答
  •  悲&欢浪女
    2020-12-04 17:57

    No there is nothing like destructor for static classes but you can use Appdomain.Unloaded event if you really need to do something

提交回复
热议问题