最近我在面试中被问到一个问题
Singleton pattern guarantees creating only a single object of a class in a process or app domain level?
最佳答案
关于静态字段的 C# 规范指出:
I.8.4.3 Static fields are always restricted to a single application domain basis (see §I.12.5), but they can also be allocated on a per-thread basis
您可以获得更多信息reading the CLI spec .
关于c# - 单例对象生命周期是进程还是appdomain?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58711990/