45 instantiations of Lazy
mscorlib (1)
system\runtime\serialization\formatters\binary\binaryformatter.cs (1)
54private 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)
15private static Lazy<XamlMember> XmlSpace = new Lazy<XamlMember>(() => new WpfXamlMember(XmlAttributeProperties.XmlSpaceProperty, true));
src\Framework\System\Windows\Markup\XamlReader.cs (3)
1130new Lazy<WpfSharedBamlSchemaContext>(() => CreateBamlSchemaContext()); 1132new Lazy<WpfSharedXamlSchemaContext>(() => CreateXamlSchemaContext(false)); 1134new Lazy<WpfSharedXamlSchemaContext>(() => CreateXamlSchemaContext(true));
System (3)
compmod\microsoft\win32\UnsafeNativeMethods.cs (1)
264internal static Lazy<bool> IsPackagedProcess = new Lazy<bool>(() => _IsPackagedProcess());
net\System\Net\_SSPIWrapper.cs (1)
83new Lazy<ConcurrentDictionary<string, SafeFreeCredentials>>(InitDefaultCredentialsHandleCache);
net\System\Net\UnsafeNativeMethods.cs (1)
3426internal static Lazy<IntPtr> PrimaryWindowHandle = new Lazy<IntPtr>(() => GetPrimaryWindowHandle());
System.Activities (1)
System\Activities\XamlIntegration\TypeConverterBase.cs (1)
19Lazy<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)
1853private static readonly Lazy<MethodInfo> _enlistPromotableSinglePhase = new Lazy<MethodInfo>(() => 1856private static readonly Lazy<MethodInfo> _setDistributedTransactionIdentifier = new Lazy<MethodInfo>(() => 1859private static readonly Lazy<MethodInfo> _getPromotedToken = new Lazy<MethodInfo>(() =>
System.ServiceModel (2)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
187this.webSocketSoapContentType = new Lazy<string>(() => { return this.MessageEncoderFactory.CreateSessionEncoder().ContentType; }, LazyThreadSafetyMode.ExecutionAndPublication);
System\ServiceModel\Channels\UnsafeNativeMethods.cs (1)
1193internal static Lazy<bool> IsTailoredApplication = new Lazy<bool>(() => _IsTailoredApplication());
System.Web (10)
Compilation\AssemblyResolver.cs (1)
71new Lazy<ConcurrentDictionary<string, Version>>(
Configuration\CompilationSection.cs (1)
199new Lazy<ConcurrentDictionary<Assembly, string>>();
Security\AntiXss\CssEncoder.cs (1)
21private static Lazy<char[][]> characterValuesLazy = new Lazy<char[][]>(InitialiseSafeList);
Security\AntiXss\HtmlParameterEncoder.cs (2)
46private static Lazy<char[][]> characterValuesLazy = new Lazy<char[][]>(InitialiseSafeList); 193private static Lazy<char[][]> pathCharacterValuesLazy = new Lazy<char[][]>(InitialisePathSafeList);
Security\AntiXss\UnicodeCharacterEncoder.cs (1)
64private static Lazy<char[][]> namedEntitiesLazy = new Lazy<char[][]>(InitialiseNamedEntityList);
Security\Cryptography\AspNetCryptoServiceProvider.cs (1)
16private static readonly Lazy<AspNetCryptoServiceProvider> _singleton = new Lazy<AspNetCryptoServiceProvider>(GetSingletonCryptoServiceProvider);
UI\WebControls\ModelDataSourceMethod.cs (1)
10private Lazy<OrderedDictionary> _parameters = new Lazy<OrderedDictionary>();
Util\HttpEncoder.cs (1)
29new Lazy<HttpEncoder>(GetCustomEncoderFromConfig);
Util\RequestValidator.cs (1)
25new Lazy<RequestValidator>(GetCustomValidatorFromConfig);
System.Xml (2)
parent\parent\parent\parent\InternalApis\NDP_Common\inc\Win8Helpers.cs (1)
84internal static Lazy<bool> IsPackagedProcess = new Lazy<bool>(() => _IsPackagedProcess());
System\Xml\Serialization\SourceInfo.cs (1)
24static 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 472private readonly Lazy<T> m_lazy; 476public System_LazyDebugView(Lazy<T> lazy)
system\runtime\serialization\formatters\binary\binaryformatter.cs (1)
54private 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)
680private static readonly Lazy<XamlMember> _xStaticMemberProperty 683private static readonly Lazy<XamlMember> _xTypeTypeProperty 686private static readonly Lazy<XamlMember> _resourceDictionaryDefContentProperty 689private static readonly Lazy<XamlType> _resourceDictionaryType 692private static readonly Lazy<XamlType> _eventSetterType 695private static readonly Lazy<XamlMember> _eventSetterEventProperty 698private static readonly Lazy<XamlMember> _eventSetterHandlerProperty 701private static readonly Lazy<XamlMember> _frameworkTemplateTemplateProperty 704private static readonly Lazy<XamlType> _staticResourceExtensionType
src\Framework\System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (9)
360private static readonly Lazy<XamlMember> _xStaticMemberProperty 363private static readonly Lazy<XamlMember> _xTypeTypeProperty 366private static readonly Lazy<XamlMember> _resourceDictionaryDefContentProperty 369private static readonly Lazy<XamlType> _resourceDictionaryType 372private static readonly Lazy<XamlType> _eventSetterType 375private static readonly Lazy<XamlMember> _eventSetterEventProperty 378private static readonly Lazy<XamlMember> _eventSetterHandlerProperty 381private static readonly Lazy<XamlMember> _frameworkTemplateTemplateProperty 384private static readonly Lazy<XamlType> _staticResourceExtensionType
src\Framework\System\Windows\Markup\WpfXamlLoader.cs (1)
15private static Lazy<XamlMember> XmlSpace = new Lazy<XamlMember>(() => new WpfXamlMember(XmlAttributeProperties.XmlSpaceProperty, true));
src\Framework\System\Windows\Markup\XamlReader.cs (3)
1129private static readonly Lazy<WpfSharedBamlSchemaContext> _bamlSharedContext = 1131private static readonly Lazy<WpfSharedXamlSchemaContext> _xamlSharedContext = 1133private static readonly Lazy<WpfSharedXamlSchemaContext> _xamlV3SharedContext =
System (3)
compmod\microsoft\win32\UnsafeNativeMethods.cs (1)
264internal static Lazy<bool> IsPackagedProcess = new Lazy<bool>(() => _IsPackagedProcess());
net\System\Net\_SSPIWrapper.cs (1)
82private static readonly Lazy<ConcurrentDictionary<string, SafeFreeCredentials>> s_DefaultCredentialsHandleCache =
net\System\Net\UnsafeNativeMethods.cs (1)
3426internal static Lazy<IntPtr> PrimaryWindowHandle = new Lazy<IntPtr>(() => GetPrimaryWindowHandle());
System.Activities (1)
System\Activities\XamlIntegration\TypeConverterBase.cs (1)
19Lazy<ConcurrentDictionary<Type, TypeConverterHelper>> helpers = new Lazy<ConcurrentDictionary<Type, TypeConverterHelper>>( delegate()
System.ComponentModel.DataAnnotations (1)
DataAnnotations\CustomValidationAttribute.cs (1)
56private 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)
1853private static readonly Lazy<MethodInfo> _enlistPromotableSinglePhase = new Lazy<MethodInfo>(() => 1856private static readonly Lazy<MethodInfo> _setDistributedTransactionIdentifier = new Lazy<MethodInfo>(() => 1859private static readonly Lazy<MethodInfo> _getPromotedToken = new Lazy<MethodInfo>(() =>
System.ServiceModel (2)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
68Lazy<string> webSocketSoapContentType;
System\ServiceModel\Channels\UnsafeNativeMethods.cs (1)
1193internal static Lazy<bool> IsTailoredApplication = new Lazy<bool>(() => _IsTailoredApplication());
System.Web (11)
Compilation\AssemblyResolver.cs (1)
70private static readonly Lazy<ConcurrentDictionary<string, Version>> s_assemblyVersions =
Configuration\CompilationSection.cs (1)
198private static readonly Lazy<ConcurrentDictionary<Assembly, string>> _assemblyNames =
Security\AntiXss\CssEncoder.cs (1)
21private static Lazy<char[][]> characterValuesLazy = new Lazy<char[][]>(InitialiseSafeList);
Security\AntiXss\HtmlParameterEncoder.cs (3)
46private static Lazy<char[][]> characterValuesLazy = new Lazy<char[][]>(InitialiseSafeList); 89private static string FormQueryEncode(string s, Encoding encoding, EncodingType encodingType, Lazy<char[][]> characterValuesLazy) { 193private static Lazy<char[][]> pathCharacterValuesLazy = new Lazy<char[][]>(InitialisePathSafeList);
Security\AntiXss\UnicodeCharacterEncoder.cs (1)
64private static Lazy<char[][]> namedEntitiesLazy = new Lazy<char[][]>(InitialiseNamedEntityList);
Security\Cryptography\AspNetCryptoServiceProvider.cs (1)
16private static readonly Lazy<AspNetCryptoServiceProvider> _singleton = new Lazy<AspNetCryptoServiceProvider>(GetSingletonCryptoServiceProvider);
UI\WebControls\ModelDataSourceMethod.cs (1)
10private Lazy<OrderedDictionary> _parameters = new Lazy<OrderedDictionary>();
Util\HttpEncoder.cs (1)
28private static readonly Lazy<HttpEncoder> _customEncoderResolver =
Util\RequestValidator.cs (1)
24private static readonly Lazy<RequestValidator> _customValidatorResolver =
System.Xml (2)
parent\parent\parent\parent\InternalApis\NDP_Common\inc\Win8Helpers.cs (1)
84internal static Lazy<bool> IsPackagedProcess = new Lazy<bool>(() => _IsPackagedProcess());
System\Xml\Serialization\SourceInfo.cs (1)
24static readonly Lazy<MethodInfo> iListGetItemMethod = new Lazy<MethodInfo>(