42 references to 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 (1)
System\ServiceModel\Channels\UnsafeNativeMethods.cs (1)
1193
internal static Lazy<bool> IsTailoredApplication = new
Lazy
<bool>(() => _IsTailoredApplication());
System.Web (8)
Compilation\AssemblyResolver.cs (1)
71
new
Lazy
<ConcurrentDictionary<string, Version>>(
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);
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>(