12 references to Initialize
Microsoft.AspNetCore.Razor.Test.Common (1)
Language\RazorProjectEngineTestBase.cs (1)
21
return _projectEngine ?? InterlockedOperations.
Initialize
(ref _projectEngine, CreateProjectEngine());
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
Utilities\SortComparer`1.cs (2)
49
=> s_default ?? InterlockedOperations.
Initialize
(ref s_default, new AscendingComparer(Comparer<T>.Default));
60
=> s_default ?? InterlockedOperations.
Initialize
(ref s_default, new DescendingComparer(Comparer<T>.Default));
Microsoft.CodeAnalysis.Razor.Compiler (5)
Language\DefaultImportProjectItem.cs (1)
25
=> _source ?? InterlockedOperations.
Initialize
(ref _source, base.GetSource());
Language\InMemoryFileContent.cs (1)
15
=> s_contentBytes ?? InterlockedOperations.
Initialize
(ref s_contentBytes, ComputeContentBytes(content));
Language\Syntax\BaseMarkupEndTagSyntax.cs (1)
18
InterlockedOperations.
Initialize
(ref _lazyChildren, this.ComputeEndTagLegacyChildren());
Language\Syntax\BaseMarkupStartTagSyntax.cs (1)
20
InterlockedOperations.
Initialize
(ref _lazyChildren, ComputeStartTagLegacyChildren());
Language\TagHelperDocumentContext.cs (1)
41
=> _binder ?? InterlockedOperations.
Initialize
(ref _binder, new TagHelperBinder(Prefix, TagHelpers));
Microsoft.CodeAnalysis.Razor.Workspaces (2)
ProjectSystem\DocumentContext.cs (2)
43
return InterlockedOperations.
Initialize
(ref _codeDocument, codeDocument);
60
return InterlockedOperations.
Initialize
(ref _sourceText, sourceText);
Microsoft.CodeAnalysis.Remote.Razor (2)
ProjectSystem\RemoteDocumentSnapshot.cs (2)
73
return InterlockedOperations.
Initialize
(ref _codeDocument, document);
96
return InterlockedOperations.
Initialize
(ref _generatedDocument, generatedDocument);