13 references to EnsureInitialized
Microsoft.CodeAnalysis (2)
InternalUtilities\RoslynLazyInitializer.cs (2)
13/// <inheritdoc cref="LazyInitializer.EnsureInitialized{T}(ref T)"/> 15=> LazyInitializer.EnsureInitialized<T>(ref target!);
Microsoft.CodeAnalysis.CSharp (3)
Compilation\CSharpCompilation.cs (2)
2528LazyInitializer.EnsureInitialized(ref _moduleInitializerMethods).Add(method); 2879LazyInitializer.EnsureInitialized(ref _lazyImportInfos)!.
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
59public ConcurrentDictionary<NamedTypeSymbol, NamedTypeSymbol> SymbolMap => LazyInitializer.EnsureInitialized(ref _symbolMap);
Microsoft.CodeAnalysis.VisualBasic (2)
Compilation\VisualBasicCompilation.vb (2)
1824LazyInitializer.EnsureInitialized(_lazyImportClauseDependencies).TryAdd((syntaxTree, importsClausePosition), dependencies) 1829LazyInitializer.EnsureInitialized(_lazyImportInfos).Enqueue(New ImportInfo(syntax))
Microsoft.Extensions.Hosting (2)
Internal\Host.cs (2)
220List<Task> bgTasks = LazyInitializer.EnsureInitialized(ref _backgroundServiceTasks); 296List<Exception> exceptions = LazyInitializer.EnsureInitialized(ref _backgroundServiceExceptions);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\PropertyDescriptor.cs (1)
55private object SyncObject => LazyInitializer.EnsureInitialized(ref _syncObject);
System.Security.Cryptography (1)
Microsoft\Win32\SafeHandles\NCryptSafeHandles.cs (1)
219lock (LazyInitializer.EnsureInitialized(ref _ownershipLock))
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\TaskReplicator.cs (1)
91LazyInitializer.EnsureInitialized(ref _replicator._exceptions).Enqueue(ex);
System.Transactions.Local (1)
System\Transactions\TransactionManager.cs (1)
264private static object ClassSyncObject => LazyInitializer.EnsureInitialized(ref s_classSyncObject);