internal static AppDomainAssemblyCache GetOrCreate() { lock (s_guard) { if (s_singleton == null) { s_singleton = new AppDomainAssemblyCache(); var currentDomain = AppDomain.CurrentDomain; currentDomain.AssemblyLoad += OnAssemblyLoad; } return(s_singleton); } }
internal static AppDomainAssemblyCache GetOrCreate() { lock (s_guard) { if (s_singleton == null) { s_singleton = new AppDomainAssemblyCache(); var currentDomain = AppDomain.CurrentDomain; currentDomain.AssemblyLoad += OnAssemblyLoad; } return s_singleton; } }