1 override of ContainsKey
mscorlib (1)
system\collections\hashtable.cs (1)
1466public override bool ContainsKey(Object key) {
222 references to ContainsKey
mscorlib (8)
system\collections\hashtable.cs (2)
496return ContainsKey(key); 1471return _table.ContainsKey(key);
system\runtime\remoting\configuration.cs (1)
1116return _exportableClasses.ContainsKey(EncodeTypeAndAssemblyNames(typeName, assemblyName));
system\runtime\remoting\lease.cs (3)
188if (!sponsorTable.ContainsKey(sponsorId)) 396if (!sponsorTable.ContainsKey(sponsorId)) 511if (sponsorTable.ContainsKey(sponsorId))
system\runtime\serialization\formatters\binary\binaryobjectwriter.cs (1)
1370if (assemblyToIdTable.ContainsKey(assemblyString))
system\security\policy\policylevel.cs (1)
1297if (classes.ContainsKey(className))
PresentationBuildTasks (1)
Framework\System\Windows\Markup\TemplateXamlParser.cs (1)
1490if (_IDTypes.ContainsKey(xamlPropertyNode.Value))
PresentationCore (10)
Core\CSharp\MS\Internal\Automation\EventMap.cs (3)
130if ((eventObject != null) && (!_eventsTable.ContainsKey(eventObject.Id))) 153if (_eventsTable.ContainsKey(idEvent)) 180if (_eventsTable.ContainsKey(idEvent))
Core\CSharp\MS\Internal\Automation\EventPropertyMap.cs (3)
58if (_propertyTable != null && _propertyTable.ContainsKey(dp)) 99if (_propertyTable.ContainsKey(dp)) 131if (_propertyTable.ContainsKey(dp))
Core\CSharp\MS\Internal\FontFace\CompositeFontParser.cs (1)
322return _namespaceMap.ContainsKey(xmlNamespace);
Core\CSharp\System\Windows\Automation\Peers\AutomationPeer.cs (1)
1838if(ht != null && ht.ContainsKey(child))
Core\CSharp\System\Windows\DataObject.cs (2)
3933&& !this._data.ContainsKey(DataFormats.Serializable)) 4045if (!_data.ContainsKey(format))
PresentationFramework (15)
src\Framework\MS\Internal\Annotations\Component\AdornerPresentationContext.cs (2)
118if (_ZLevel.ContainsKey(type)) 524if (_ZLevel.ContainsKey(type))
src\Framework\MS\Internal\Globalization\BamlTreeMap.cs (1)
149if (_uidToBamlNodeIndexMap.ContainsKey(key.Uid))
src\Framework\MS\Internal\Globalization\BamlTreeUpdater.cs (2)
302if (uidSubstitutions.ContainsKey(element.Uid)) 333if (!uidSubstitutions.ContainsKey(element.Uid))
src\Framework\MS\Internal\WeakHashSet.cs (3)
28if (!_hashTable.ContainsKey(item)) 41return _hashTable.ContainsKey(item); 87if (_hashTable.ContainsKey(item))
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (2)
1679if (!_textPatternAttributes.ContainsKey(attribute)) 1818if (attribute == null || !_textPatternAttributes.ContainsKey(attribute))
src\Framework\System\Windows\Documents\FixedFlowMap.cs (1)
397if (_mapping.ContainsKey(fn))
src\Framework\System\Windows\Documents\XPSS0ValidatingLoader.cs (3)
119if (!validResources.ContainsKey(absTargetUri)) 126if (!validResources.ContainsKey(absTargetUri)) 196if (!validResources.ContainsKey(uri))
src\Framework\System\Windows\Interop\ActiveXHost.cs (1)
153if (dp != null && invalidatorMap.ContainsKey(dp))
System (32)
compmod\system\codedom\CodeNamespaceImportCollection.cs (1)
82if (!keys.ContainsKey(value.Namespace)) {
compmod\system\collections\specialized\stringdictionary.cs (1)
139return contents.ContainsKey(key.ToLower(CultureInfo.InvariantCulture));
compmod\system\collections\specialized\stringdictionarywithcomparer.cs (1)
60return contents.ContainsKey(key);
compmod\system\componentmodel\AttributeCollection.cs (1)
322if (_defaultAttributes.ContainsKey(attributeType))
compmod\system\componentmodel\LicenseManager.cs (1)
148return providers.ContainsKey(type);
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (1)
182if (!_editorTables.ContainsKey(editorBaseType))
compmod\system\componentmodel\TypeDescriptor.cs (3)
328refreshNeeded = _providerTable.ContainsKey(instance); 438if (_defaultProviders.ContainsKey(type)) 445if (_defaultProviders.ContainsKey(type))
compmod\system\security\permissions\ResourcePermissionBase.cs (6)
146if (currentTable.ContainsKey(accessPath[index])) 155if (currentTable.ContainsKey(accessPath[accessPath.Length - 1])) 338if (contentsTable.ContainsKey(currentKey) && 418if (!targetContentTable.ContainsKey(currentContentKey)) { 528if (currentTable == null || !currentTable.ContainsKey(accessPath[index])) 605if (!newContents.ContainsKey(targetContentEnumerator.Key))
net\System\Net\_SpnDictionary.cs (1)
145return m_SyncTable.ContainsKey(key);
net\System\Net\ServicePointManager.cs (3)
206if (configTable.ContainsKey("*") ) { 809if (ConfigTable.ContainsKey(schemeHostPort) ) { 874if (ConfigTable.ContainsKey(schemeHostPort) ) {
regex\system\text\regularexpressions\RegexParser.cs (4)
1610if (!_caps.ContainsKey(i)) { 1638if (!_capnames.ContainsKey(name)) { 1737return _caps.ContainsKey(i); 1749return _capnames.ContainsKey(capname);
services\monitoring\system\diagnosticts\PerformanceCounterCategory.cs (2)
363if (h.ContainsKey(counterData[i].CounterName)) { 540return categorySample.InstanceNameTable.ContainsKey(instanceName);
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (7)
272return CategoryTable.ContainsKey(category); 334if (!CategoryTable.ContainsKey(category)) 613if (this.customCategoryTable.ContainsKey(category)) { 887if (this.NameTable.ContainsKey(index)) 1403if (!this.InstanceNameTable.ContainsKey(newInstanceName)) { 1562if (!categorySample.InstanceNameTable.ContainsKey(instanceName)) { 1568if (!categorySample.InstanceNameTable.ContainsKey(instanceName))
System.Activities (2)
System\Activities\Tracking\TrackingProvider.cs (2)
213return this.activitySubscriptions == null || this.activitySubscriptions.ContainsKey(name) || this.activitySubscriptions.ContainsKey("*");
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PropertyActiveEditModeStateContainer.cs (1)
33return _expandedPropertyEditors.ContainsKey(ModelUtilities.GetCachedSubPropertyHierarchyPath(property)) ?
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1494bool haveSeenBefore = _seenAttributes.ContainsKey(attrData.AttributeType);
System.Data (20)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PropertyActiveEditModeStateContainer.cs (1)
33return _expandedPropertyEditors.ContainsKey(ModelUtilities.GetCachedSubPropertyHierarchyPath(property)) ?
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1494bool haveSeenBefore = _seenAttributes.ContainsKey(attrData.AttributeType);
fx\src\data\System\Data\Common\DbConnectionOptions.cs (9)
147HasPasswordKeyword = (_parsetable.ContainsKey(KEY.Password) || _parsetable.ContainsKey(SYNONYM.Pwd)); 148HasUserIdKeyword = (_parsetable.ContainsKey(KEY.User_ID) || _parsetable.ContainsKey(SYNONYM.UID)); 181if (_parsetable.ContainsKey(KEY.Password)) { 184if (_parsetable.ContainsKey(SYNONYM.Pwd)) { 187return ((_parsetable.ContainsKey(KEY.User_ID) && !ADP.IsEmpty((string)_parsetable[KEY.User_ID])) || (_parsetable.ContainsKey(SYNONYM.UID) && !ADP.IsEmpty((string)_parsetable[SYNONYM.UID]))); 361return _parsetable.ContainsKey(keyword);
fx\src\data\System\Data\Common\DBConnectionString.cs (3)
106if (_parsetable.ContainsKey(KEY.Password)) { 109if (_parsetable.ContainsKey(KEY.Pwd)) { 183return _parsetable.ContainsKey(keyword);
fx\src\data\System\Data\Common\DbConnectionStringBuilder.cs (2)
368if (!propertyDescriptors.ContainsKey(displayName)) { 390if (!propertyDescriptors.ContainsKey(keyword)) {
fx\src\data\System\Data\DataTable.cs (2)
836if (rowErrors.ContainsKey(rowIndex)) { 839if (colErrors.ContainsKey(rowIndex)) {
fx\src\data\System\Data\SqlClient\SqlConnectionString.cs (1)
355if (!netlib.ContainsKey(networkLibrary)) {
fx\src\data\System\Data\XMLSchema.cs (1)
1185if (ConstraintNodes.ContainsKey(name))
System.Data.SqlXml (3)
System\Xml\Xsl\XsltOld\Stylesheet.cs (2)
134if (this.attributeSetTable.ContainsKey(attributeSet.Name) == false) { 153if (this.templateNameTable.ContainsKey(template.Name) == false) {
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (1)
235if (! documents.ContainsKey(uri)) {
System.Management (5)
Instrumentation\EventSource.cs (1)
465if(mapQueryIdToQuery.ContainsKey(dwId))
Instrumentation\Instrumentation.cs (4)
90if(instrumentedAssemblies.ContainsKey(assemblyToRegister)) 195if(instrumentedAssemblies.ContainsKey(assembly)) 227if(false == instrumentedAssemblies.ContainsKey(assembly)) 390if(mapPublishedObjectToID.ContainsKey(o))
System.Messaging (7)
System\Messaging\Design\MessageQueueConverter.cs (1)
97if (componentsCreated.ContainsKey(path))
System\Messaging\Design\QueuePathDialog.cs (1)
404if (machinesTable.ContainsKey(machineName))
System\Messaging\MessageQueuePermission.cs (4)
247if (formatNamesTable.ContainsKey(formatNamesEnumerator.Key)) 289if (targetQueuePermission.resolvedFormatNames.ContainsKey(Any)) 308if (!targetQueuePermission.resolvedFormatNames.ContainsKey(currentFormatName)) 489if (!newFormatNames.ContainsKey(targetFormatNamesEnumerator.Key))
System\Messaging\XmlMessageFormatter.cs (1)
231if (this.targetSerializerTable.ContainsKey(serializedType))
System.Runtime.Remoting (10)
metadata\wsdlparser.cs (4)
1143if (portType.sections.ContainsKey(portContent.name)) 1151if (portType.sections.ContainsKey(portContent.name)) 1172if (!portType.sections.ContainsKey(portContent.name)) 2389return cSharpKeywords.ContainsKey(value);
metadata\wsdlwriter.cs (6)
131if (_typeToServiceEndpoint.ContainsKey(serviceTypes[i].ObjectType.Name)) 725if (((_typeToServiceEndpoint != null) && (_typeToServiceEndpoint.ContainsKey(refNames[i]))) || 741if ((_typeToServiceEndpoint != null) && (_typeToServiceEndpoint.ContainsKey(refNames[i]))) 1488if (_typeToServiceEndpoint != null && !_typeToServiceEndpoint.ContainsKey(lbaseType.Name) && _typeToServiceEndpoint.ContainsKey(ltype.Name)) 2864if (!usedNames.ContainsKey(xns.Prefix))
System.Runtime.Serialization (3)
System\Runtime\Serialization\DataContract.cs (1)
1084if (typeToIDCache.ContainsKey(typeHandleRef))
System\Runtime\Serialization\SchemaImporter.cs (1)
620if (!serializationSchemaElements.ContainsKey(element.RefName.Name))
System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (1)
276if (!dataContractTypeCache.ContainsKey(key))
System.Security (1)
system\security\cryptography\xml\exccanonicalxml.cs (1)
126return m_inclusivePrefixSet.ContainsKey(nsPrefix) &&
System.ServiceModel (3)
System\ServiceModel\Channels\CommunicationObjectManager.cs (2)
31if (this.table.ContainsKey(item)) 75if (!this.table.ContainsKey(item))
System\ServiceModel\Dispatcher\XPathLexer.cs (1)
1040if (this.resolveKeywords && namedTypes.ContainsKey(name))
System.ServiceModel.Activation (1)
System\ServiceModel\ServiceHostingEnvironment.cs (1)
804return this.serviceActivations.ContainsKey(normalizedVirtualPath);
System.ServiceModel.Web (3)
System\ServiceModel\Dispatcher\NameValueCache.cs (1)
48if (!cache.ContainsKey(key))
System\ServiceModel\Dispatcher\QueryStringConverter.cs (2)
56if (this.defaultSupportedQueryStringTypes.ContainsKey(type)) 261if (this.typeConverterCache.ContainsKey(parameterType))
System.Web (12)
Cache\SqlCacheDependency.cs (5)
705if (s_DatabaseNotifStates.ContainsKey(database)) { 723if (s_DatabaseNotifStates.ContainsKey(database)) { 870Debug.Assert(!dbState._tables.ContainsKey(tableName), 880Debug.Assert(dbState._tables.ContainsKey(tableName), 1062dbState._tables.ContainsKey(table)) { // The table is also registered
Compilation\AssemblyBuilder.cs (2)
471if (_buildProviders.ContainsKey(hashtableKey)) 505if (_buildProviders.ContainsKey(virtualPath.VirtualPathString))
Compilation\BuildProvidersCompiler.cs (1)
518if (depth.ContainsKey(child)) {
Configuration\HealthMonitoringSectionHelper.cs (1)
601return _instances.ContainsKey(name);
FileChangesMonitor.cs (1)
1561if (_dirs.ContainsKey(fullPath)) {
HttpApplication.cs (1)
1989if (_moduleIndexMap.ContainsKey(moduleName)) {
UI\ViewStateModeByIdAttribute.cs (1)
23if (!_viewStateIdTypes.ContainsKey(type)) {
System.Web.DataVisualization (3)
Common\DataManager\DataPoint.cs (2)
2882 return properties.ContainsKey(name); 2892return properties.ContainsKey((int)property);
Common\General\ChartAreaAxes.cs (1)
1240if (groupsHashTable.ContainsKey(groupName))
System.Web.DynamicData (1)
DynamicData\Util\TemplateFactory.cs (1)
110return _fieldTemplateVirtualPathCache.ContainsKey(cacheKey);
System.Web.Extensions (4)
Script\Serialization\JavaScriptSerializer.cs (1)
502else if (objectsInUse.ContainsKey(o)) {
UI\ScriptManager.cs (2)
2068if (_initialState.ContainsKey(key)) { 2073if (_initialState.ContainsKey(key)) {
UI\WebControls\QueryableDataSourceView.cs (1)
548if (_originalValues.ContainsKey(propertyName)) {
System.Web.Mobile (3)
UI\MobileControls\Style.cs (3)
403if (stylesEncountered.ContainsKey(style)) 713if (stylesEncountered.ContainsKey(referredStyle)) 751if (stylesEncountered.ContainsKey(referredStyle))
System.Windows.Forms (35)
winforms\Managed\System\WinForms\Application.cs (1)
2054if (!OleComponents.ContainsKey(dwLocalComponentID)) {
winforms\Managed\System\WinForms\AxHost.cs (1)
2901if (!properties.ContainsKey(propName)) {
winforms\Managed\System\WinForms\BindingContext.cs (1)
225return listManagers.ContainsKey(GetKey(dataSource, dataMember));
winforms\Managed\System\WinForms\ComboBox.cs (6)
4838if (!ContainsKey(key)) { 5764Debug.Assert(!ACWindows.ContainsKey(acHandle)); 5774if (!ACWindows.ContainsKey(handle)) { 5811Debug.Assert(ACWindows.ContainsKey(this.Handle)); 5818if (subclass && ACWindows.ContainsKey(acHandle)) { 5824if (!ACWindows.ContainsKey(acHandle)) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
846else if (builtEnums.ContainsKey(enumName)) {
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
6874if (this.converters.ContainsKey(type))
winforms\Managed\System\WinForms\DataObject.cs (2)
2193&& !this.data.ContainsKey(DataFormats.Serializable)) { 2212return data.ContainsKey(format);
winforms\Managed\System\WinForms\HelpProvider.cs (3)
326return showHelp.ContainsKey(ctl); 344if (GetShowHelp(ctl) && !boundControls.ContainsKey(ctl)) { 349else if (!GetShowHelp(ctl) && boundControls.ContainsKey(ctl)) {
winforms\Managed\System\WinForms\ListView.cs (2)
3811Debug.Assert(!listItemsTable.ContainsKey(itemID), "internal hash table inconsistent -- inserting item, but it's already in the hash table"); 7959if (!usedIndices.ContainsKey(values[i].DisplayIndex) && values[i].DisplayIndex >= 0 && values[i].DisplayIndex < values.Length) {
winforms\Managed\System\WinForms\PropertyGrid.cs (3)
1358if (designerKey != null && designerSelections != null && designerSelections.ContainsKey(designerKey.GetHashCode())) { 4102if (designerSelections != null && designerSelections.ContainsKey(hashCode) && (int)designerSelections[hashCode] == tabIndex) { 4708if (viewTabProps != null && viewTabProps.ContainsKey(tabName)) {
winforms\Managed\System\WinForms\PropertyGridInternal\CategoryGridEntry.cs (1)
49if (!categoryStates.ContainsKey(name)) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
6419if (!ContainsKey(key)) {
winforms\Managed\System\WinForms\StatusBar.cs (1)
1731if (tools.ContainsKey(key)) {
winforms\Managed\System\WinForms\ToolStripManager.cs (2)
1569if (activeControlInChain.ContextMenuStrip.Shortcuts.ContainsKey(shortcut)) { 1604else if (toolStrip.Shortcuts.ContainsKey(shortcut)) {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
689if (shortcut != Keys.None && lastOwner.Shortcuts.ContainsKey(shortcut)) {
winforms\Managed\System\WinForms\ToolTip.cs (8)
1001if (!created.ContainsKey(ctl) && captionValid 1019if (!created.ContainsKey(ctl) 1026if (created.ContainsKey(ctl)) { 1063if (created.ContainsKey(ctl) 1263if (currentControl != null && tools != null && tools.ContainsKey(currentControl)) 1446if (tools.ContainsKey(control)) { 1972if (tools.ContainsKey(tool)) { 2011if (tool != null && tools.ContainsKey(tool)) {
System.Windows.Forms.DataVisualization (3)
Common\DataManager\DataPoint.cs (2)
2882 return properties.ContainsKey(name); 2892return properties.ContainsKey((int)property);
Common\General\ChartAreaAxes.cs (1)
1240if (groupsHashTable.ContainsKey(groupName))
System.Workflow.Activities (8)
Common\CompModHelpers.cs (1)
1014if (typeNames != null && typeNames.ContainsKey(key))
Common\ValidationHelpers.cs (1)
114if (identifiers.ContainsKey(activity.QualifiedName))
CorrelationValidator.cs (4)
517if (!paramTypes.ContainsKey(paramName)) 555if (!paramTypes.ContainsKey(paramName)) 606else if (paramTypes.ContainsKey(paramName) && (Type)paramTypes[paramName] != paramType) 888if (!parameterCollection.ContainsKey(paramName))
Rules\Helpers.cs (2)
201if (cloneableOrNullRulesResources.ContainsKey(workflowType)) 228if (!uncloneableRulesResources.ContainsKey(workflowType))
System.Workflow.ComponentModel (10)
AuthoringOM\Compiler\TypeSystem\TypeProvider.cs (4)
95!this.assemblyLoaders.ContainsKey(path) && 122if (this.typeLoadErrors.ContainsKey(path)) 137if (this.compileUnitLoaders.ContainsKey(codeCompileUnit) || (this.addedCompileUnits != null && this.addedCompileUnits.Contains(codeCompileUnit))) 168if (this.typeLoadErrors.ContainsKey(codeCompileUnit))
AuthoringOM\Design\PropertyDescriptors.cs (1)
151if (!properties.ContainsKey(prop.Name))
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (2)
754if (propInfo != null && !allProperties.ContainsKey(propInfo.Name)) 764if (eventInfo != null && !allProperties.ContainsKey(eventInfo.Name))
Shared\CompModHelpers.cs (1)
1012if (typeNames != null && typeNames.ContainsKey(key))
Shared\ValidationHelpers.cs (1)
113if (identifiers.ContainsKey(activity.QualifiedName))
Shared\XomlSerializationHelpers.cs (1)
446if (dynamicEvents != null && dynamicEvents.ContainsKey(eventName))
System.WorkflowServices (6)
System\Workflow\Activities\ReceiveActivity.cs (1)
1327if (requestContextsCache.ContainsKey(keyValue))
System\Workflow\Activities\ValidationHelper.cs (4)
213if (!implementedServiceOperations[contractType].ContainsKey(serviceOperation.Name)) 291else if (notImplementedServiceOperations[currentContractType].ContainsKey(operationName)) 309else if (!implementedServiceOperations[currentContractType].ContainsKey(operationName)) 325else if (notImplementedServiceOperations[currentContractType].ContainsKey(operationName))
System\Workflow\Runtime\Hosting\ChannelManager.cs (1)
210if (this.endpointMappings.ContainsKey(address))
System.Xml (3)
System\Xml\Serialization\XmlSerializationWriter.cs (3)
419if (objectsInUse.ContainsKey(o)) throw new InvalidOperationException(Res.GetString(Res.XmlCircularReference, o.GetType().FullName)); 496if (!qnIndexes.ContainsKey(newIndex)) { 1287while (usedPrefixes.ContainsKey(++tempNamespacePrefix)) {;}
UIAutomationClientsideProviders (8)
MS\Internal\AutomationProxies\MSAAEventDispatcher.cs (7)
94if (_hwndTable.ContainsKey(hwnd)) 107eventTable[key] = eventTable.ContainsKey(key) ? (int)eventTable[key] + 1 : 1; 122if (_hwndTable.ContainsKey(hwnd)) 130if (eventTable.ContainsKey(key)) 284if (eventTable.ContainsKey(eventId)) 303if (eventTable.ContainsKey(property) && (clientToo || !IsClientObject(idObject, idChild))) 325if (eventTable.ContainsKey(AutomationElement.StructureChangedEvent) && !IsClientObject(idObject, idChild))
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (1)
58return _groupManagers.ContainsKey(hwnd);