33 references to TryAdd
mscorlib (1)
system\Collections\Concurrent\ConcurrentDictionary.cs (1)
1320
if (!
TryAdd
(key, value))
PresentationFramework (3)
src\Framework\System\Windows\Markup\Baml2006\WpfXamlType.cs (3)
281
if (Members.
TryAdd
(name, xamlMember))
363
if (Members.
TryAdd
(xamlMember.Name, xamlMember))
374
if (AttachableMembers.
TryAdd
(xamlMember.Name, xamlMember))
System (1)
net\System\Net\_SSPIWrapper.cs (1)
141
s_DefaultCredentialsHandleCache.Value.
TryAdd
(currentIdentityKey, outCredential);
System.Activities (1)
System\Activities\XamlIntegration\TypeConverterBase.cs (1)
73
if (!this.helpers.Value.
TryAdd
(targetType, currentHelper))
System.ComponentModel.DataAnnotations (3)
DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (3)
95
_validatedMetadataTypeCache.
TryAdd
(typeTuple, true);
110
_metadataTypeCache.
TryAdd
(type, associatedMetadataType);
156
_typeMemberCache.
TryAdd
(memberTuple, attributes);
System.Data (6)
fx\src\data\System\Data\ProviderBase\DbConnectionPoolGroup.cs (2)
200
bool addResult = _poolCollection.
TryAdd
(currentIdentity, newPool);
280
newPoolCollection.
TryAdd
(entry.Key, entry.Value);
fx\src\data\System\Data\SqlClient\SqlAeadAes256CbcHmac256Factory.cs (1)
74
_encryptionAlgorithms.
TryAdd
(algorithmKey, aesAlgorithm);
fx\src\data\System\Data\SqlClient\SqlAes256CbcFactory.cs (1)
79
_encryptionAlgorithms.
TryAdd
(algorithmKey, aesAlgorithm);
fx\src\data\System\Data\SqlClient\SqlClientEncryptionAlgorithmFactoryList.cs (2)
26
_encryptionAlgoFactoryList.
TryAdd
(SqlAeadAes256CbcHmac256Algorithm.AlgorithmName, new SqlAeadAes256CbcHmac256Factory());
27
_encryptionAlgoFactoryList.
TryAdd
(SqlAes256CbcAlgorithm.AlgorithmName, new SqlAes256CbcFactory());
System.ServiceModel (2)
System\ServiceModel\Channels\HttpHeaderInfo.cs (2)
150
knownHeadersInfos.
TryAdd
(headerInfo.Name, headerInfo);
206
this.isUnknownHeader = !knownHeadersInfos.
TryAdd
(this.Name, this);
System.Web (13)
Compilation\AssemblyResolver.cs (1)
227
assemblyVersions.
TryAdd
(path, version);
Configuration\CompilationSection.cs (1)
712
_assemblyNames.Value.
TryAdd
(a, assemblyName);
Configuration\MTConfigUtil.cs (2)
157
s_sections.
TryAdd
(key, result);
211
s_configurations.
TryAdd
(vpath, result);
UI\DataBinder.cs (1)
150
propertyCache.
TryAdd
(containerType, properties);
UI\TargetFrameworkUtil.cs (8)
70
s_memberCache.
TryAdd
(type, memberCache);
186
memberCache.Properties.
TryAdd
(key, result);
235
memberCache.Fields.
TryAdd
(key, result);
271
memberCache.Events.
TryAdd
(name, result);
306
s_typePropertyDescriptorCollectionDict.
TryAdd
(type, result);
335
s_objectPropertyDescriptorCollectionDict.
TryAdd
(obj, result);
391
s_eventDescriptorCollectionDict.
TryAdd
(type, result);
480
s_isFrameworkType.
TryAdd
(type, result);
System.Web.DynamicData (2)
DynamicData\MetaModel.cs (1)
296
s_registeredMetadataTypes.
TryAdd
(entityType, true);
UI\DataControlExtensions.cs (1)
33
s_MetaTableCache.
TryAdd
(entityType, table);
System.Web.Extensions (1)
UI\AssemblyCache.cs (1)
82
_ajaxAssemblyAttributeCache.
TryAdd
(assembly, ajaxFrameworkAssemblyAttribute);