45 instantiations of Lazy
mscorlib (1)
system\runtime\serialization\formatters\binary\binaryformatter.cs (1)
54
private static Lazy<ConcurrentDictionary<Type, TypeInformation>> concurrentTypeNameCache = new
Lazy
<ConcurrentDictionary<Type, TypeInformation>>(() => new ConcurrentDictionary<Type, TypeInformation>());
PresentationFramework (22)
src\Framework\System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (9)
681
= new
Lazy
<XamlMember>(() => XamlLanguage.Static.GetMember("MemberType"));
684
= new
Lazy
<XamlMember>(() => XamlLanguage.Static.GetMember("Type"));
687
= new
Lazy
<XamlMember>(() => _resourceDictionaryType.Value.GetMember("DeferrableContent"));
690
= new
Lazy
<XamlType>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(ResourceDictionary)));
693
= new
Lazy
<XamlType>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(EventSetter)));
696
= new
Lazy
<XamlMember>(() => _eventSetterType.Value.GetMember("Event"));
699
= new
Lazy
<XamlMember>(() => _eventSetterType.Value.GetMember("Handler"));
702
= new
Lazy
<XamlMember>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(FrameworkTemplate)).GetMember("Template"));
705
= new
Lazy
<XamlType>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(StaticResourceExtension)));
src\Framework\System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (9)
361
= new
Lazy
<XamlMember>(() => XamlLanguage.Static.GetMember("MemberType"));
364
= new
Lazy
<XamlMember>(() => XamlLanguage.Static.GetMember("Type"));
367
= new
Lazy
<XamlMember>(() => _resourceDictionaryType.Value.GetMember("DeferrableContent"));
370
= new
Lazy
<XamlType>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(ResourceDictionary)));
373
= new
Lazy
<XamlType>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(EventSetter)));
376
= new
Lazy
<XamlMember>(() => _eventSetterType.Value.GetMember("Event"));
379
= new
Lazy
<XamlMember>(() => _eventSetterType.Value.GetMember("Handler"));
382
= new
Lazy
<XamlMember>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(FrameworkTemplate)).GetMember("Template"));
385
= new
Lazy
<XamlType>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(StaticResourceExtension)));
src\Framework\System\Windows\Markup\WpfXamlLoader.cs (1)
15
private static Lazy<XamlMember> XmlSpace = new
Lazy
<XamlMember>(() => new WpfXamlMember(XmlAttributeProperties.XmlSpaceProperty, true));
src\Framework\System\Windows\Markup\XamlReader.cs (3)
1130
new
Lazy
<WpfSharedBamlSchemaContext>(() => CreateBamlSchemaContext());
1132
new
Lazy
<WpfSharedXamlSchemaContext>(() => CreateXamlSchemaContext(false));
1134
new
Lazy
<WpfSharedXamlSchemaContext>(() => CreateXamlSchemaContext(true));
System (3)
compmod\microsoft\win32\UnsafeNativeMethods.cs (1)
264
internal static Lazy<bool> IsPackagedProcess = new
Lazy
<bool>(() => _IsPackagedProcess());
net\System\Net\_SSPIWrapper.cs (1)
83
new
Lazy
<ConcurrentDictionary<string, SafeFreeCredentials>>(InitDefaultCredentialsHandleCache);
net\System\Net\UnsafeNativeMethods.cs (1)
3426
internal static Lazy<IntPtr> PrimaryWindowHandle = new
Lazy
<IntPtr>(() => GetPrimaryWindowHandle());
System.Activities (1)
System\Activities\XamlIntegration\TypeConverterBase.cs (1)
19
Lazy<ConcurrentDictionary<Type, TypeConverterHelper>> helpers = new
Lazy
<ConcurrentDictionary<Type, TypeConverterHelper>>( delegate()
System.ComponentModel.DataAnnotations (1)
DataAnnotations\CustomValidationAttribute.cs (1)
79
_malformedErrorMessage = new
Lazy
<string>(CheckAttributeWellFormed);
System.Data (3)
fx\src\data\System\Data\SqlClient\SqlUtil.cs (3)
1853
private static readonly Lazy<MethodInfo> _enlistPromotableSinglePhase = new
Lazy
<MethodInfo>(() =>
1856
private static readonly Lazy<MethodInfo> _setDistributedTransactionIdentifier = new
Lazy
<MethodInfo>(() =>
1859
private static readonly Lazy<MethodInfo> _getPromotedToken = new
Lazy
<MethodInfo>(() =>
System.ServiceModel (2)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
187
this.webSocketSoapContentType = new
Lazy
<string>(() => { return this.MessageEncoderFactory.CreateSessionEncoder().ContentType; }, LazyThreadSafetyMode.ExecutionAndPublication);
System\ServiceModel\Channels\UnsafeNativeMethods.cs (1)
1193
internal static Lazy<bool> IsTailoredApplication = new
Lazy
<bool>(() => _IsTailoredApplication());
System.Web (10)
Compilation\AssemblyResolver.cs (1)
71
new
Lazy
<ConcurrentDictionary<string, Version>>(
Configuration\CompilationSection.cs (1)
199
new
Lazy
<ConcurrentDictionary<Assembly, string>>();
Security\AntiXss\CssEncoder.cs (1)
21
private static Lazy<char[][]> characterValuesLazy = new
Lazy
<char[][]>(InitialiseSafeList);
Security\AntiXss\HtmlParameterEncoder.cs (2)
46
private static Lazy<char[][]> characterValuesLazy = new
Lazy
<char[][]>(InitialiseSafeList);
193
private static Lazy<char[][]> pathCharacterValuesLazy = new
Lazy
<char[][]>(InitialisePathSafeList);
Security\AntiXss\UnicodeCharacterEncoder.cs (1)
64
private static Lazy<char[][]> namedEntitiesLazy = new
Lazy
<char[][]>(InitialiseNamedEntityList);
Security\Cryptography\AspNetCryptoServiceProvider.cs (1)
16
private static readonly Lazy<AspNetCryptoServiceProvider> _singleton = new
Lazy
<AspNetCryptoServiceProvider>(GetSingletonCryptoServiceProvider);
UI\WebControls\ModelDataSourceMethod.cs (1)
10
private Lazy<OrderedDictionary> _parameters = new
Lazy
<OrderedDictionary>();
Util\HttpEncoder.cs (1)
29
new
Lazy
<HttpEncoder>(GetCustomEncoderFromConfig);
Util\RequestValidator.cs (1)
25
new
Lazy
<RequestValidator>(GetCustomValidatorFromConfig);
System.Xml (2)
parent\parent\parent\parent\InternalApis\NDP_Common\inc\Win8Helpers.cs (1)
84
internal static Lazy<bool> IsPackagedProcess = new
Lazy
<bool>(() => _IsPackagedProcess());
System\Xml\Serialization\SourceInfo.cs (1)
24
static readonly Lazy<MethodInfo> iListGetItemMethod = new
Lazy
<MethodInfo>(
50 references to Lazy
mscorlib (4)
system\Lazy.cs (3)
47
/// By default, all public and protected members of <see cref="
Lazy
{T}"/> are thread-safe and may be used
472
private readonly
Lazy
<T> m_lazy;
476
public System_LazyDebugView(
Lazy
<T> lazy)
system\runtime\serialization\formatters\binary\binaryformatter.cs (1)
54
private static
Lazy
<ConcurrentDictionary<Type, TypeInformation>> concurrentTypeNameCache = new Lazy<ConcurrentDictionary<Type, TypeInformation>>(() => new ConcurrentDictionary<Type, TypeInformation>());
PresentationFramework (22)
src\Framework\System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (9)
680
private static readonly
Lazy
<XamlMember> _xStaticMemberProperty
683
private static readonly
Lazy
<XamlMember> _xTypeTypeProperty
686
private static readonly
Lazy
<XamlMember> _resourceDictionaryDefContentProperty
689
private static readonly
Lazy
<XamlType> _resourceDictionaryType
692
private static readonly
Lazy
<XamlType> _eventSetterType
695
private static readonly
Lazy
<XamlMember> _eventSetterEventProperty
698
private static readonly
Lazy
<XamlMember> _eventSetterHandlerProperty
701
private static readonly
Lazy
<XamlMember> _frameworkTemplateTemplateProperty
704
private static readonly
Lazy
<XamlType> _staticResourceExtensionType
src\Framework\System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (9)
360
private static readonly
Lazy
<XamlMember> _xStaticMemberProperty
363
private static readonly
Lazy
<XamlMember> _xTypeTypeProperty
366
private static readonly
Lazy
<XamlMember> _resourceDictionaryDefContentProperty
369
private static readonly
Lazy
<XamlType> _resourceDictionaryType
372
private static readonly
Lazy
<XamlType> _eventSetterType
375
private static readonly
Lazy
<XamlMember> _eventSetterEventProperty
378
private static readonly
Lazy
<XamlMember> _eventSetterHandlerProperty
381
private static readonly
Lazy
<XamlMember> _frameworkTemplateTemplateProperty
384
private static readonly
Lazy
<XamlType> _staticResourceExtensionType
src\Framework\System\Windows\Markup\WpfXamlLoader.cs (1)
15
private static
Lazy
<XamlMember> XmlSpace = new Lazy<XamlMember>(() => new WpfXamlMember(XmlAttributeProperties.XmlSpaceProperty, true));
src\Framework\System\Windows\Markup\XamlReader.cs (3)
1129
private static readonly
Lazy
<WpfSharedBamlSchemaContext> _bamlSharedContext =
1131
private static readonly
Lazy
<WpfSharedXamlSchemaContext> _xamlSharedContext =
1133
private static readonly
Lazy
<WpfSharedXamlSchemaContext> _xamlV3SharedContext =
System (3)
compmod\microsoft\win32\UnsafeNativeMethods.cs (1)
264
internal static
Lazy
<bool> IsPackagedProcess = new Lazy<bool>(() => _IsPackagedProcess());
net\System\Net\_SSPIWrapper.cs (1)
82
private static readonly
Lazy
<ConcurrentDictionary<string, SafeFreeCredentials>> s_DefaultCredentialsHandleCache =
net\System\Net\UnsafeNativeMethods.cs (1)
3426
internal static
Lazy
<IntPtr> PrimaryWindowHandle = new Lazy<IntPtr>(() => GetPrimaryWindowHandle());
System.Activities (1)
System\Activities\XamlIntegration\TypeConverterBase.cs (1)
19
Lazy
<ConcurrentDictionary<Type, TypeConverterHelper>> helpers = new Lazy<ConcurrentDictionary<Type, TypeConverterHelper>>( delegate()
System.ComponentModel.DataAnnotations (1)
DataAnnotations\CustomValidationAttribute.cs (1)
56
private
Lazy
<string> _malformedErrorMessage;
System.Core (1)
System\Lazy.cs (1)
10
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
Lazy
<>))]
System.Data (3)
fx\src\data\System\Data\SqlClient\SqlUtil.cs (3)
1853
private static readonly
Lazy
<MethodInfo> _enlistPromotableSinglePhase = new Lazy<MethodInfo>(() =>
1856
private static readonly
Lazy
<MethodInfo> _setDistributedTransactionIdentifier = new Lazy<MethodInfo>(() =>
1859
private static readonly
Lazy
<MethodInfo> _getPromotedToken = new Lazy<MethodInfo>(() =>
System.ServiceModel (2)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
68
Lazy
<string> webSocketSoapContentType;
System\ServiceModel\Channels\UnsafeNativeMethods.cs (1)
1193
internal static
Lazy
<bool> IsTailoredApplication = new Lazy<bool>(() => _IsTailoredApplication());
System.Web (11)
Compilation\AssemblyResolver.cs (1)
70
private static readonly
Lazy
<ConcurrentDictionary<string, Version>> s_assemblyVersions =
Configuration\CompilationSection.cs (1)
198
private static readonly
Lazy
<ConcurrentDictionary<Assembly, string>> _assemblyNames =
Security\AntiXss\CssEncoder.cs (1)
21
private static
Lazy
<char[][]> characterValuesLazy = new Lazy<char[][]>(InitialiseSafeList);
Security\AntiXss\HtmlParameterEncoder.cs (3)
46
private static
Lazy
<char[][]> characterValuesLazy = new Lazy<char[][]>(InitialiseSafeList);
89
private static string FormQueryEncode(string s, Encoding encoding, EncodingType encodingType,
Lazy
<char[][]> characterValuesLazy) {
193
private static
Lazy
<char[][]> pathCharacterValuesLazy = new Lazy<char[][]>(InitialisePathSafeList);
Security\AntiXss\UnicodeCharacterEncoder.cs (1)
64
private static
Lazy
<char[][]> namedEntitiesLazy = new Lazy<char[][]>(InitialiseNamedEntityList);
Security\Cryptography\AspNetCryptoServiceProvider.cs (1)
16
private static readonly
Lazy
<AspNetCryptoServiceProvider> _singleton = new Lazy<AspNetCryptoServiceProvider>(GetSingletonCryptoServiceProvider);
UI\WebControls\ModelDataSourceMethod.cs (1)
10
private
Lazy
<OrderedDictionary> _parameters = new Lazy<OrderedDictionary>();
Util\HttpEncoder.cs (1)
28
private static readonly
Lazy
<HttpEncoder> _customEncoderResolver =
Util\RequestValidator.cs (1)
24
private static readonly
Lazy
<RequestValidator> _customValidatorResolver =
System.Xml (2)
parent\parent\parent\parent\InternalApis\NDP_Common\inc\Win8Helpers.cs (1)
84
internal static
Lazy
<bool> IsPackagedProcess = new Lazy<bool>(() => _IsPackagedProcess());
System\Xml\Serialization\SourceInfo.cs (1)
24
static readonly
Lazy
<MethodInfo> iListGetItemMethod = new Lazy<MethodInfo>(