11 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 (2)
Compilation\CSharpCompilation.cs (1)
2776LazyInitializer.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)
1822LazyInitializer.EnsureInitialized(_lazyImportClauseDependencies).TryAdd((syntaxTree, importsClausePosition), dependencies) 1827LazyInitializer.EnsureInitialized(_lazyImportInfos).Enqueue(New ImportInfo(syntax))
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\RoslynLazyInitializer.cs (2)
13/// <inheritdoc cref="LazyInitializer.EnsureInitialized{T}(ref T)"/> 15=> LazyInitializer.EnsureInitialized<T>(ref target!);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\PropertyDescriptor.cs (1)
55private object SyncObject => LazyInitializer.EnsureInitialized(ref _syncObject);
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\TaskReplicator.cs (1)
90LazyInitializer.EnsureInitialized(ref _replicator._exceptions).Enqueue(ex);
System.Transactions.Local (1)
System\Transactions\TransactionManager.cs (1)
265private static object ClassSyncObject => LazyInitializer.EnsureInitialized(ref s_classSyncObject);