221 references to Lazy
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
109
_webSocketSoapContentType = new
Lazy
<string>(() => MessageEncoderFactory.CreateSessionEncoder().ContentType, LazyThreadSafetyMode.ExecutionAndPublication);
GenerateDocumentationAndConfigFiles (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
33
_referencedAssemblies = new
Lazy
<ImmutableArray<IAssemblySymbol>>(
Metrics (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
33
_referencedAssemblies = new
Lazy
<ImmutableArray<IAssemblySymbol>>(
Metrics.Legacy (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
33
_referencedAssemblies = new
Lazy
<ImmutableArray<IAssemblySymbol>>(
Microsoft.AspNetCore.App.Analyzers.Test (1)
TestDiagnosticAnalyzer.cs (1)
118
ExportProviderFactory = new
Lazy
<IExportProviderFactory>(
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
GrpcJsonTranscodingOptions.cs (2)
21
_unaryOptions = new
Lazy
<JsonSerializerOptions>(
24
_serverStreamingOptions = new
Lazy
<JsonSerializerOptions>(
Microsoft.Build (3)
BackEnd\Components\Logging\LoggingService.cs (3)
98
private static readonly Lazy<PropertyInfo> s_projectStartedEventArgsGlobalProperties = new
Lazy
<PropertyInfo>(() => typeof(ProjectStartedEventArgs).GetProperty("GlobalProperties", BindingFlags.Public | BindingFlags.Instance), LazyThreadSafetyMode.PublicationOnly);
107
private static readonly Lazy<PropertyInfo> s_projectStartedEventArgsToolsVersion = new
Lazy
<PropertyInfo>(() => typeof(ProjectStartedEventArgs).GetProperty("ToolsVersion", BindingFlags.Public | BindingFlags.Instance), LazyThreadSafetyMode.PublicationOnly);
317
_configCache = new
Lazy
<IConfigCache>(() => (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache), LazyThreadSafetyMode.PublicationOnly);
Microsoft.Build.Framework (1)
FileUtilities_TempFiles.cs (1)
24
return new
Lazy
<string>(
Microsoft.Build.Tasks.Core (1)
WriteCodeFragment.cs (1)
278
Lazy<Type> attributeType =
new
(
Microsoft.CodeAnalysis.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
33
_referencedAssemblies = new
Lazy
<ImmutableArray<IAssemblySymbol>>(
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
33
_referencedAssemblies = new
Lazy
<ImmutableArray<IAssemblySymbol>>(
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataConfig.cs (3)
119
lazySourceSymbolMap = new
Lazy
<TaintedDataSymbolMap<SourceInfo>>(
130
lazySanitizerSymbolMap = new
Lazy
<TaintedDataSymbolMap<SanitizerInfo>>(
152
Lazy<TaintedDataSymbolMap<SinkInfo>> lazySinkSymbolMap = new
Lazy
<TaintedDataSymbolMap<SinkInfo>>(
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
33
_referencedAssemblies = new
Lazy
<ImmutableArray<IAssemblySymbol>>(
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ObjectFormatterTests.cs (1)
754
var obj = new
Lazy
<int[]>(() => new int[] { 1, 2 }, LazyThreadSafetyMode.None);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
26
private static readonly Lazy<MetadataReference> _unconditionalSuppressMessageRef =
new
(() =>
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
ExpressionCompiler.cs (1)
381
new
Lazy
<ImmutableArray<AssemblyReaders>>(instructionAddress.MakeAssemblyReaders, LazyThreadSafetyMode.None),
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\Engine\DkmClrType.cs (1)
47
_lazyEvalAttributes = new System.
Lazy
<ReadOnlyCollection<DkmClrEvalAttribute>>(
Microsoft.CodeAnalysis.Features (2)
Completion\CompletionList.cs (1)
83
_lazyItems =
new
(() => ItemsList.ToImmutableArrayOrEmpty(), System.Threading.LazyThreadSafetyMode.PublicationOnly);
Completion\CompletionService.ProviderManager.cs (1)
40
_nameToProvider = new
Lazy
<ImmutableDictionary<string, CompletionProvider>>(LoadImportedProvidersAndCreateNameMap, LazyThreadSafetyMode.PublicationOnly);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
33
_referencedAssemblies = new
Lazy
<ImmutableArray<IAssemblySymbol>>(
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
33
_referencedAssemblies = new
Lazy
<ImmutableArray<IAssemblySymbol>>(
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
33
_referencedAssemblies = new
Lazy
<ImmutableArray<IAssemblySymbol>>(
Microsoft.CodeAnalysis.Test.Utilities (177)
Mocks\Silverlight.cs (1)
29
private static readonly Lazy<(byte[], byte[])> s_tuple = new
Lazy
<(byte[], byte[])>(
Mocks\TestReferences.cs (147)
21
private static readonly Lazy<PortableExecutableReference> s_appCS = new
Lazy
<PortableExecutableReference>(
26
private static readonly Lazy<PortableExecutableReference> s_moduleCS00 = new
Lazy
<PortableExecutableReference>(
31
private static readonly Lazy<PortableExecutableReference> s_moduleCS01 = new
Lazy
<PortableExecutableReference>(
36
private static readonly Lazy<PortableExecutableReference> s_moduleVB01 = new
Lazy
<PortableExecutableReference>(
44
private static readonly Lazy<PortableExecutableReference> s_CSClasses01 = new
Lazy
<PortableExecutableReference>(
49
private static readonly Lazy<PortableExecutableReference> s_CSInterfaces01 = new
Lazy
<PortableExecutableReference>(
54
private static readonly Lazy<PortableExecutableReference> s_VBClasses01 = new
Lazy
<PortableExecutableReference>(
59
private static readonly Lazy<PortableExecutableReference> s_VBClasses02 = new
Lazy
<PortableExecutableReference>(
64
private static readonly Lazy<PortableExecutableReference> s_VBInterfaces01 = new
Lazy
<PortableExecutableReference>(
75
private static readonly Lazy<PortableExecutableReference> s_mincorlib = new
Lazy
<PortableExecutableReference>(
80
private static readonly Lazy<PortableExecutableReference> s_minasync = new
Lazy
<PortableExecutableReference>(
85
private static readonly Lazy<PortableExecutableReference> s_minasynccorlib = new
Lazy
<PortableExecutableReference>(
93
private static readonly Lazy<PortableExecutableReference> s_tuplelib = new
Lazy
<PortableExecutableReference>(
101
private static readonly Lazy<PortableExecutableReference> s_system = new
Lazy
<PortableExecutableReference>(
112
private static readonly Lazy<PortableExecutableReference> s_errTestLib01 = new
Lazy
<PortableExecutableReference>(
120
private static readonly Lazy<PortableExecutableReference> s_errTestLib02 = new
Lazy
<PortableExecutableReference>(
128
private static readonly Lazy<PortableExecutableReference> s_errTestLib11 = new
Lazy
<PortableExecutableReference>(
136
private static readonly Lazy<PortableExecutableReference> s_errTestMod01 = new
Lazy
<PortableExecutableReference>(
144
private static readonly Lazy<PortableExecutableReference> s_errTestMod02 = new
Lazy
<PortableExecutableReference>(
152
private static readonly Lazy<PortableExecutableReference> s_badresfile = new
Lazy
<PortableExecutableReference>(
161
private static readonly Lazy<PortableExecutableReference> s_mdTestLib1 = new
Lazy
<PortableExecutableReference>(
166
private static readonly Lazy<PortableExecutableReference> s_mdTestLib2 = new
Lazy
<PortableExecutableReference>(
171
private static readonly Lazy<PortableExecutableReference> s_VBConversions = new
Lazy
<PortableExecutableReference>(
176
private static readonly Lazy<PortableExecutableReference> s_withSpaces = new
Lazy
<PortableExecutableReference>(
181
private static readonly Lazy<PortableExecutableReference> s_withSpacesModule = new
Lazy
<PortableExecutableReference>(
186
private static readonly Lazy<PortableExecutableReference> s_inheritIComparable = new
Lazy
<PortableExecutableReference>(
191
private static readonly Lazy<PortableExecutableReference> s_bigVisitor = new
Lazy
<PortableExecutableReference>(
196
private static readonly Lazy<PortableExecutableReference> s_properties = new
Lazy
<PortableExecutableReference>(
201
private static readonly Lazy<PortableExecutableReference> s_propertiesWithByRef = new
Lazy
<PortableExecutableReference>(
206
private static readonly Lazy<PortableExecutableReference> s_indexers = new
Lazy
<PortableExecutableReference>(
211
private static readonly Lazy<PortableExecutableReference> s_events = new
Lazy
<PortableExecutableReference>(
218
private static readonly Lazy<PortableExecutableReference> s_netModule1 = new
Lazy
<PortableExecutableReference>(
223
private static readonly Lazy<PortableExecutableReference> s_netModule2 = new
Lazy
<PortableExecutableReference>(
228
private static readonly Lazy<PortableExecutableReference> s_crossRefModule1 = new
Lazy
<PortableExecutableReference>(
233
private static readonly Lazy<PortableExecutableReference> s_crossRefModule2 = new
Lazy
<PortableExecutableReference>(
238
private static readonly Lazy<PortableExecutableReference> s_crossRefLib = new
Lazy
<PortableExecutableReference>(
246
private static readonly Lazy<PortableExecutableReference> s_hash_module = new
Lazy
<PortableExecutableReference>(
251
private static readonly Lazy<PortableExecutableReference> s_x64COFF = new
Lazy
<PortableExecutableReference>(
261
private static readonly Lazy<PortableExecutableReference> s_v1MTTestLib1 = new
Lazy
<PortableExecutableReference>(
269
private static readonly Lazy<PortableExecutableReference> s_v1MTTestLib1 = new
Lazy
<PortableExecutableReference>(
277
private static readonly Lazy<PortableExecutableReference> s_v1MTTestLib2 = new
Lazy
<PortableExecutableReference>(
285
private static readonly Lazy<PortableExecutableReference> s_v1MTTestLib1 = new
Lazy
<PortableExecutableReference>(
296
private static readonly Lazy<PortableExecutableReference> s_v2MTTestLib1 = new
Lazy
<PortableExecutableReference>(
304
private static readonly Lazy<PortableExecutableReference> s_v1MTTestLib1 = new
Lazy
<PortableExecutableReference>(
312
private static readonly Lazy<PortableExecutableReference> s_v2MTTestLib3 = new
Lazy
<PortableExecutableReference>(
320
private static readonly Lazy<PortableExecutableReference> s_v1MTTestLib1 = new
Lazy
<PortableExecutableReference>(
331
private static readonly Lazy<PortableExecutableReference> s_v3MTTestLib1 = new
Lazy
<PortableExecutableReference>(
339
private static readonly Lazy<PortableExecutableReference> s_v1MTTestLib1 = new
Lazy
<PortableExecutableReference>(
347
private static readonly Lazy<PortableExecutableReference> s_v3MTTestLib4 = new
Lazy
<PortableExecutableReference>(
355
private static readonly Lazy<PortableExecutableReference> s_v1MTTestLib1 = new
Lazy
<PortableExecutableReference>(
364
private static readonly Lazy<PortableExecutableReference> s_assembly = new
Lazy
<PortableExecutableReference>(
372
private static readonly Lazy<PortableExecutableReference> s_mod2 = new
Lazy
<PortableExecutableReference>(
377
private static readonly Lazy<PortableExecutableReference> s_mod3 = new
Lazy
<PortableExecutableReference>(
382
private static readonly Lazy<PortableExecutableReference> s_consumer = new
Lazy
<PortableExecutableReference>(
390
private static readonly Lazy<PortableExecutableReference> s_typeAndNamespaceDifferByCase = new
Lazy
<PortableExecutableReference>(
395
private static readonly Lazy<PortableExecutableReference> s_differByCaseConsumer = new
Lazy
<PortableExecutableReference>(
400
private static readonly Lazy<PortableExecutableReference> s_csharpCaseSen = new
Lazy
<PortableExecutableReference>(
405
private static readonly Lazy<PortableExecutableReference> s_csharpDifferCaseOverloads = new
Lazy
<PortableExecutableReference>(
415
private static readonly Lazy<PortableExecutableReference> s_exe = new
Lazy
<PortableExecutableReference>(
421
private static readonly Lazy<PortableExecutableReference> s_noMsCorLibRef = new
Lazy
<PortableExecutableReference>(
428
private static readonly Lazy<PortableExecutableReference> s_dll = new
Lazy
<PortableExecutableReference>(
439
private static readonly Lazy<PortableExecutableReference> s_dll = new
Lazy
<PortableExecutableReference>(
444
private static readonly Lazy<PortableExecutableReference> s_module = new
Lazy
<PortableExecutableReference>(
450
private static readonly Lazy<PortableExecutableReference> s_modoptTests = new
Lazy
<PortableExecutableReference>(
457
private static readonly Lazy<PortableExecutableReference> s_dll = new
Lazy
<PortableExecutableReference>(
465
private static readonly Lazy<PortableExecutableReference> s_dll = new
Lazy
<PortableExecutableReference>(
476
private static readonly Lazy<PortableExecutableReference> s_cyclic1 = new
Lazy
<PortableExecutableReference>(
484
private static readonly Lazy<PortableExecutableReference> s_cyclic2 = new
Lazy
<PortableExecutableReference>(
493
private static readonly Lazy<PortableExecutableReference> s_class1 = new
Lazy
<PortableExecutableReference>(
498
private static readonly Lazy<PortableExecutableReference> s_class2 = new
Lazy
<PortableExecutableReference>(
503
private static readonly Lazy<PortableExecutableReference> s_class3 = new
Lazy
<PortableExecutableReference>(
509
private static readonly Lazy<PortableExecutableReference> s_cycledStructs = new
Lazy
<PortableExecutableReference>(
520
private static readonly Lazy<PortableExecutableReference> s_classA = new
Lazy
<PortableExecutableReference>(
528
private static readonly Lazy<PortableExecutableReference> s_classB = new
Lazy
<PortableExecutableReference>(
539
private static readonly Lazy<PortableExecutableReference> s_classA = new
Lazy
<PortableExecutableReference>(
547
private static readonly Lazy<PortableExecutableReference> s_classB = new
Lazy
<PortableExecutableReference>(
557
private static readonly Lazy<PortableExecutableReference> s_CSMethods = new
Lazy
<PortableExecutableReference>(
562
private static readonly Lazy<PortableExecutableReference> s_VBMethods = new
Lazy
<PortableExecutableReference>(
567
private static readonly Lazy<PortableExecutableReference> s_ILMethods = new
Lazy
<PortableExecutableReference>(
572
private static readonly Lazy<PortableExecutableReference> s_byRefReturn = new
Lazy
<PortableExecutableReference>(
582
private static readonly Lazy<PortableExecutableReference> s_CSFields = new
Lazy
<PortableExecutableReference>(
590
private static readonly Lazy<PortableExecutableReference> s_VBFields = new
Lazy
<PortableExecutableReference>(
596
private static readonly Lazy<PortableExecutableReference> s_constantFields = new
Lazy
<PortableExecutableReference>(
604
private static readonly Lazy<PortableExecutableReference> s_MDMissingType = new
Lazy
<PortableExecutableReference>(
609
private static readonly Lazy<PortableExecutableReference> s_MDMissingTypeLib = new
Lazy
<PortableExecutableReference>(
614
private static readonly Lazy<PortableExecutableReference> s_missingTypesEquality1 = new
Lazy
<PortableExecutableReference>(
619
private static readonly Lazy<PortableExecutableReference> s_missingTypesEquality2 = new
Lazy
<PortableExecutableReference>(
624
private static readonly Lazy<PortableExecutableReference> s_CL2 = new
Lazy
<PortableExecutableReference>(
629
private static readonly Lazy<PortableExecutableReference> s_CL3 = new
Lazy
<PortableExecutableReference>(
639
private static readonly Lazy<PortableExecutableReference> s_typeForwarder2 = new
Lazy
<PortableExecutableReference>(
647
private static readonly Lazy<PortableExecutableReference> s_typeForwarderLib2 = new
Lazy
<PortableExecutableReference>(
655
private static readonly Lazy<PortableExecutableReference> s_typeForwarderBase2 = new
Lazy
<PortableExecutableReference>(
664
private static readonly Lazy<PortableExecutableReference> s_source1Module = new
Lazy
<PortableExecutableReference>(
669
private static readonly Lazy<PortableExecutableReference> s_source3Module = new
Lazy
<PortableExecutableReference>(
674
private static readonly Lazy<PortableExecutableReference> s_source4Module = new
Lazy
<PortableExecutableReference>(
679
private static readonly Lazy<PortableExecutableReference> s_source5Module = new
Lazy
<PortableExecutableReference>(
684
private static readonly Lazy<PortableExecutableReference> s_source7Module = new
Lazy
<PortableExecutableReference>(
692
private static readonly Lazy<PortableExecutableReference> s_stdOleNetFramework = new
Lazy
<PortableExecutableReference>(
696
private static readonly Lazy<PortableExecutableReference> s_stdOleNet40 = new
Lazy
<PortableExecutableReference>(
700
private static readonly Lazy<PortableExecutableReference> s_pia1 = new
Lazy
<PortableExecutableReference>(
705
private static readonly Lazy<PortableExecutableReference> s_pia1Copy = new
Lazy
<PortableExecutableReference>(
710
private static readonly Lazy<PortableExecutableReference> s_pia2 = new
Lazy
<PortableExecutableReference>(
715
private static readonly Lazy<PortableExecutableReference> s_pia3 = new
Lazy
<PortableExecutableReference>(
720
private static readonly Lazy<PortableExecutableReference> s_pia4 = new
Lazy
<PortableExecutableReference>(
725
private static readonly Lazy<PortableExecutableReference> s_pia5 = new
Lazy
<PortableExecutableReference>(
730
private static readonly Lazy<PortableExecutableReference> s_generalPia = new
Lazy
<PortableExecutableReference>(
735
private static readonly Lazy<PortableExecutableReference> s_generalPiaCopy = new
Lazy
<PortableExecutableReference>(
740
private static readonly Lazy<PortableExecutableReference> s_noPIAGenericsAsm1 = new
Lazy
<PortableExecutableReference>(
745
private static readonly Lazy<PortableExecutableReference> s_externalAsm1 = new
Lazy
<PortableExecutableReference>(
750
private static readonly Lazy<PortableExecutableReference> s_library1 = new
Lazy
<PortableExecutableReference>(
755
private static readonly Lazy<PortableExecutableReference> s_library2 = new
Lazy
<PortableExecutableReference>(
760
private static readonly Lazy<PortableExecutableReference> s_localTypes1 = new
Lazy
<PortableExecutableReference>(
765
private static readonly Lazy<PortableExecutableReference> s_localTypes2 = new
Lazy
<PortableExecutableReference>(
770
private static readonly Lazy<PortableExecutableReference> s_localTypes3 = new
Lazy
<PortableExecutableReference>(
775
private static readonly Lazy<PortableExecutableReference> s_A = new
Lazy
<PortableExecutableReference>(
780
private static readonly Lazy<PortableExecutableReference> s_B = new
Lazy
<PortableExecutableReference>(
785
private static readonly Lazy<PortableExecutableReference> s_C = new
Lazy
<PortableExecutableReference>(
790
private static readonly Lazy<PortableExecutableReference> s_D = new
Lazy
<PortableExecutableReference>(
799
private static readonly Lazy<PortableExecutableReference> s_missingPIAAttributes = new
Lazy
<PortableExecutableReference>(
809
private static readonly Lazy<PortableExecutableReference> s_staticMethodInInterface = new
Lazy
<PortableExecutableReference>(
814
private static readonly Lazy<PortableExecutableReference> s_MDInterfaceMapping = new
Lazy
<PortableExecutableReference>(
822
private static readonly Lazy<PortableExecutableReference> s_MDTestLib1 = new
Lazy
<PortableExecutableReference>(
827
private static readonly Lazy<PortableExecutableReference> s_netModule1 = new
Lazy
<PortableExecutableReference>(
837
private static readonly Lazy<PortableExecutableReference> s_CSharp = new
Lazy
<PortableExecutableReference>(
842
private static readonly Lazy<PortableExecutableReference> s_IL = new
Lazy
<PortableExecutableReference>(
850
private static readonly Lazy<PortableExecutableReference> s_CSharp = new
Lazy
<PortableExecutableReference>(
855
private static readonly Lazy<PortableExecutableReference> s_IL = new
Lazy
<PortableExecutableReference>(
863
private static readonly Lazy<PortableExecutableReference> s_CSharp = new
Lazy
<PortableExecutableReference>(
870
private static readonly Lazy<PortableExecutableReference> s_regress40025 = new
Lazy
<PortableExecutableReference>(
877
private static readonly Lazy<PortableExecutableReference> s_simpleWithEvents = new
Lazy
<PortableExecutableReference>(
885
private static readonly Lazy<PortableExecutableReference> s_delegatesWithoutInvoke = new
Lazy
<PortableExecutableReference>(
890
private static readonly Lazy<PortableExecutableReference> s_delegateByRefParamArray = new
Lazy
<PortableExecutableReference>(
898
private static readonly Lazy<PortableExecutableReference> s_invalidCharactersInAssemblyName2 = new
Lazy
<PortableExecutableReference>(
903
private static readonly Lazy<PortableExecutableReference> s_MDTestAttributeDefLib = new
Lazy
<PortableExecutableReference>(
908
private static readonly Lazy<PortableExecutableReference> s_MDTestAttributeApplicationLib = new
Lazy
<PortableExecutableReference>(
913
private static readonly Lazy<PortableExecutableReference> s_attributeInterop01 = new
Lazy
<PortableExecutableReference>(
918
private static readonly Lazy<PortableExecutableReference> s_attributeInterop02 = new
Lazy
<PortableExecutableReference>(
923
private static readonly Lazy<PortableExecutableReference> s_attributeTestLib01 = new
Lazy
<PortableExecutableReference>(
928
private static readonly Lazy<PortableExecutableReference> s_attributeTestDef01 = new
Lazy
<PortableExecutableReference>(
933
private static readonly Lazy<PortableExecutableReference> s_dynamicAttributeLib = new
Lazy
<PortableExecutableReference>(
941
private static readonly Lazy<PortableExecutableReference> s_unavailable = new
Lazy
<PortableExecutableReference>(
946
private static readonly Lazy<PortableExecutableReference> s_CSharp = new
Lazy
<PortableExecutableReference>(
951
private static readonly Lazy<PortableExecutableReference> s_IL = new
Lazy
<PortableExecutableReference>(
959
private static readonly Lazy<PortableExecutableReference> s_AR_SA = new
Lazy
<PortableExecutableReference>(
964
private static readonly Lazy<PortableExecutableReference> s_EN_US = new
Lazy
<PortableExecutableReference>(
969
private static readonly Lazy<PortableExecutableReference> s_C1 = new
Lazy
<PortableExecutableReference>(
974
private static readonly Lazy<PortableExecutableReference> s_C2 = new
Lazy
<PortableExecutableReference>(
TestBase.cs (29)
78
private static readonly Lazy<MetadataReference[]> s_lazyDefaultVbReferences = new
Lazy
<MetadataReference[]>(
83
private static readonly Lazy<MetadataReference[]> s_lazyLatestVbReferences = new
Lazy
<MetadataReference[]>(
96
private static readonly Lazy<MetadataReference[]> s_winRtRefs = new
Lazy
<MetadataReference[]>(
129
private static readonly Lazy<MetadataReference[]> s_portableRefsMinimal = new
Lazy
<MetadataReference[]>(
145
new
Lazy
<MetadataReference>(
150
private static readonly Lazy<MetadataReference> s_systemCoreRef_v4_0_30319_17929 = new
Lazy
<MetadataReference>(
155
private static readonly Lazy<MetadataReference> s_systemRuntimeSerializationRef_v4_0_30319_17929 = new
Lazy
<MetadataReference>(
160
private static readonly Lazy<MetadataReference> s_systemCoreRef_v46 = new
Lazy
<MetadataReference>(
165
private static readonly Lazy<MetadataReference> s_systemWindowsFormsRef = new
Lazy
<MetadataReference>(
170
private static readonly Lazy<MetadataReference> s_systemDrawingRef = new
Lazy
<MetadataReference>(
175
private static readonly Lazy<MetadataReference> s_systemDataRef = new
Lazy
<MetadataReference>(
180
private static readonly Lazy<MetadataReference> s_mscorlibRef = new
Lazy
<MetadataReference>(
185
private static readonly Lazy<MetadataReference> s_aacorlibRef = new
Lazy
<MetadataReference>(
212
private static readonly Lazy<MetadataReference> s_mscorlibRef_v46 = new
Lazy
<MetadataReference>(
242
private static readonly Lazy<MetadataReference> s_desktopCSharpRef = new
Lazy
<MetadataReference>(
247
private static readonly Lazy<MetadataReference> s_std20Ref = new
Lazy
<MetadataReference>(
253
private static readonly Lazy<MetadataReference> s_systemRef = new
Lazy
<MetadataReference>(
258
private static readonly Lazy<MetadataReference> s_systemRef_v46 = new
Lazy
<MetadataReference>(
263
private static readonly Lazy<MetadataReference> s_systemRef_v4_0_30319_17929 = new
Lazy
<MetadataReference>(
268
private static readonly Lazy<MetadataReference> s_systemRef_v20 = new
Lazy
<MetadataReference>(
273
private static readonly Lazy<MetadataReference> s_systemXmlRef = new
Lazy
<MetadataReference>(
278
private static readonly Lazy<MetadataReference> s_systemXmlLinqRef = new
Lazy
<MetadataReference>(
283
private static readonly Lazy<MetadataReference> s_mscorlibFacadeRef = new
Lazy
<MetadataReference>(
288
private static readonly Lazy<MetadataReference> s_systemRuntimeFacadeRef = new
Lazy
<MetadataReference>(
293
private static readonly Lazy<MetadataReference> s_systemThreadingFacadeRef = new
Lazy
<MetadataReference>(
298
private static readonly Lazy<MetadataReference> s_systemThreadingTasksFacadeRef = new
Lazy
<MetadataReference>(
303
private static readonly Lazy<MetadataReference> s_mscorlibPP7Ref = new
Lazy
<MetadataReference>(
308
private static readonly Lazy<MetadataReference> s_systemRuntimePP7Ref = new
Lazy
<MetadataReference>(
313
private static readonly Lazy<MetadataReference> s_FSharpTestLibraryRef = new
Lazy
<MetadataReference>(
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\SuppressMessageAttributeCompilerTests.cs (1)
37
private static readonly Lazy<ImmutableArray<MetadataReference>> s_references = new
Lazy
<ImmutableArray<MetadataReference>>(() =>
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Windows\WindowsContainerResourceQuotaProvider.cs (1)
26
_memoryStatus = new
Lazy
<MEMORYSTATUSEX>(
Microsoft.Extensions.Http (2)
DefaultHttpClientFactory.cs (2)
82
return new
Lazy
<ActiveHandlerTrackingEntry>(() =>
98
_logger = new
Lazy
<ILogger>(
Microsoft.ML.Data (1)
Transforms\ColumnBindingsBase.cs (1)
344
_convertedSchema = new
Lazy
<DataViewSchema>(() => CreateSchema(this), LazyThreadSafetyMode.PublicationOnly);
Roslyn.Diagnostics.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
33
_referencedAssemblies = new
Lazy
<ImmutableArray<IAssemblySymbol>>(
System.ComponentModel.Composition (7)
System\ComponentModel\Composition\AttributedModel\AttributedPartCreationInfo.cs (1)
44
return new
Lazy
<Type>(GetPartType, LazyThreadSafetyMode.PublicationOnly);
System\ComponentModel\Composition\ExportServices.cs (1)
103
return new
Lazy
<T>(() => ExportServices.GetCastedExportedValue<T>(export), LazyThreadSafetyMode.PublicationOnly);
System\ComponentModel\Composition\ExportServices.DisposableLazy.cs (1)
33
:
base
(valueFactory, mode)
System\ComponentModel\Composition\Hosting\ComposablePartCatalogCollection.cs (3)
49
var addedParts = new
Lazy
<IEnumerable<ComposablePartDefinition>>(() => item.ToArray(), LazyThreadSafetyMode.PublicationOnly);
103
var removedParts = new
Lazy
<IEnumerable<ComposablePartDefinition>>(() => catalogs.SelectMany(catalog => catalog).ToArray(), LazyThreadSafetyMode.PublicationOnly);
187
var removedParts = new
Lazy
<IEnumerable<ComposablePartDefinition>>(() => item.ToArray(), LazyThreadSafetyMode.PublicationOnly);
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (1)
46
_lazyPartType = new
Lazy
<Type>(
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\LazyOfTTMetadata.cs (1)
45
base
(valueFactory, mode)
System.ServiceModel.Http (1)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
132
_webSocketSoapContentType = new
Lazy
<string>(() => MessageEncoderFactory.CreateSessionEncoder().ContentType, LazyThreadSafetyMode.ExecutionAndPublication);
Test.Utilities (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
33
_referencedAssemblies = new
Lazy
<ImmutableArray<IAssemblySymbol>>(
Text.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
33
_referencedAssemblies = new
Lazy
<ImmutableArray<IAssemblySymbol>>(