72 implementations of Contains
GenerateDocumentationAndConfigFiles (4)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
344bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
134bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
245readonly bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
1131bool IDictionary.Contains(object key)
Microsoft.Build (5)
Collections\ArrayDictionary.cs (1)
198bool IDictionary.Contains(object key)
src\5057ed6cf5d6323b\ImmutableSegmentedDictionary`2.cs (1)
344bool IDictionary.Contains(object key)
src\5057ed6cf5d6323b\ImmutableSegmentedDictionary`2+Builder.cs (1)
134bool IDictionary.Contains(object key)
src\5057ed6cf5d6323b\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
245readonly bool IDictionary.Contains(object key)
src\5057ed6cf5d6323b\SegmentedDictionary`2.cs (1)
1131bool IDictionary.Contains(object key)
Microsoft.Build.Framework (2)
Collections\CopyOnWriteDictionary.cs (1)
347bool IDictionary.Contains(object key)
Collections\ReadOnlyEmptyDictionary.cs (1)
268public bool Contains(object key)
Microsoft.CodeAnalysis (4)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
344bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
134bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
245readonly bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
1131bool IDictionary.Contains(object key)
Microsoft.CodeAnalysis.Analyzers (4)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
344bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
134bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
245readonly bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
1131bool IDictionary.Contains(object key)
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
344bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
134bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
245readonly bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
1131bool IDictionary.Contains(object key)
Microsoft.CodeAnalysis.CodeStyle (4)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
344bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
134bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
245readonly bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
1131bool IDictionary.Contains(object key)
Microsoft.CodeAnalysis.Extensions.Package (4)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
344bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
134bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
245readonly bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
1131bool IDictionary.Contains(object key)
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
344bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
134bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
245readonly bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
1131bool IDictionary.Contains(object key)
Microsoft.CodeAnalysis.Workspaces (4)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
344bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
134bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
245readonly bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
1131bool IDictionary.Contains(object key)
Microsoft.NET.Sdk.Publish.Tasks (1)
Tasks\MsDeploy\VsMsdeploy.cs (1)
360public bool Contains(object key)
PresentationBuildTasks (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (1)
176public bool Contains(object key)
PresentationCore (2)
System\Windows\Media\CharacterMetricsDictionary.cs (1)
298bool SC.IDictionary.Contains(object key)
System\Windows\Media\CultureSpecificStringDictionary.cs (1)
277bool SC.IDictionary.Contains(object key)
PresentationFramework (3)
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
320bool IDictionary.Contains(object key)
System\Windows\Markup\XmlnsDictionary.cs (1)
176public bool Contains(object key)
System\Windows\ResourceDictionary.cs (1)
774public bool Contains(object key)
Roslyn.Diagnostics.Analyzers (4)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
344bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
134bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
245readonly bool IDictionary.Contains(object key)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
1131bool IDictionary.Contains(object key)
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (1)
1261bool IDictionary.Contains(object key)
System\Collections\Generic\SortedDictionary.cs (1)
366bool IDictionary.Contains(object key)
System\Collections\Generic\SortedList.cs (1)
405bool IDictionary.Contains(object key)
System.Collections.Immutable (5)
System\Collections\Frozen\FrozenDictionary.cs (1)
595bool IDictionary.Contains(object key)
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (1)
284bool IDictionary.Contains(object key)
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
702bool IDictionary.Contains(object key)
System\Collections\Immutable\ImmutableSortedDictionary_2.Builder.cs (1)
359bool IDictionary.Contains(object key)
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
599bool IDictionary.Contains(object key)
System.Collections.NonGeneric (2)
System\Collections\DictionaryBase.cs (1)
108bool IDictionary.Contains(object key)
System\Collections\SortedList.cs (1)
309public virtual bool Contains(object key)
System.Collections.Specialized (3)
System\Collections\Specialized\HybridDictionary.cs (1)
269public bool Contains(object key)
System\Collections\Specialized\ListDictionary.cs (1)
189public bool Contains(object key)
System\Collections\Specialized\OrderedDictionary.cs (1)
260public bool Contains(object key)
System.ComponentModel.TypeConverter (1)
System\ComponentModel\PropertyDescriptorCollection.cs (1)
425bool IDictionary.Contains(object key)
System.Data.Common (1)
System\Data\Common\DbConnectionStringBuilder.cs (1)
298bool IDictionary.Contains(object keyword)
System.Diagnostics.Process (1)
System\Collections\Specialized\DictionaryWrapper.cs (1)
61public bool Contains(object key) => ContainsKey((string)key);
System.DirectoryServices (1)
System\DirectoryServices\PropertyCollection.cs (1)
139bool IDictionary.Contains(object value) => Contains((string)value);
System.Private.CoreLib (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (1)
1703bool IDictionary.Contains(object key)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (1)
1830bool IDictionary.Contains(object key)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (1)
469public virtual bool Contains(object key)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (1)
134public bool Contains(object key)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (1)
127bool IDictionary.Contains(object key)
72 references to Contains
Aspire.Hosting (3)
Ats\CollectionExports.cs (3)
40return dict.Contains(normalizedKey) ? dict[normalizedKey] : null; 63if (!dict.Contains(normalizedKey)) 89=> dict.Contains(NormalizeDictionaryKey(dict, key));
dotnet-svcutil-lib (3)
CodeDomFixup\MethodCreationHelper.cs (1)
100if (this.ClientType.UserData.Contains("Namespace"))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingFormat.cs (1)
157if (exception.Data.Contains(FramingEncodingString.ExceptionKey))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (1)
1685if (ex.Data.Contains(FailedReferenceTypeExceptionKey))
GenerateDocumentationAndConfigFiles (3)
src\roslyn\src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
45=> dictionary.Contains(key);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
345=> ((IDictionary)_dictionary).Contains(key);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
246=> ((IDictionary)ReadOnlyDictionary).Contains(key);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
TryGetValueProvider.cs (1)
98var success = weakDict.Contains(key);
Microsoft.Build (3)
src\5057ed6cf5d6323b\ImmutableSegmentedDictionary`2.cs (1)
345=> ((IDictionary)_dictionary).Contains(key);
src\5057ed6cf5d6323b\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
246=> ((IDictionary)ReadOnlyDictionary).Contains(key);
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\IDictionaryCalls.cs (1)
45=> dictionary.Contains(key);
Microsoft.Build.Tasks.Core (2)
WriteCodeFragment.cs (2)
339if (customMetadata.Contains(parameterNameKey)) 369if (customMetadata.Contains(parameterNameKey))
Microsoft.CodeAnalysis (3)
src\roslyn\src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
45=> dictionary.Contains(key);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
345=> ((IDictionary)_dictionary).Contains(key);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
246=> ((IDictionary)ReadOnlyDictionary).Contains(key);
Microsoft.CodeAnalysis.Analyzers (3)
src\roslyn\src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
45=> dictionary.Contains(key);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
345=> ((IDictionary)_dictionary).Contains(key);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
246=> ((IDictionary)ReadOnlyDictionary).Contains(key);
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\roslyn\src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
45=> dictionary.Contains(key);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
345=> ((IDictionary)_dictionary).Contains(key);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
246=> ((IDictionary)ReadOnlyDictionary).Contains(key);
Microsoft.CodeAnalysis.CodeStyle (3)
src\roslyn\src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
45=> dictionary.Contains(key);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
345=> ((IDictionary)_dictionary).Contains(key);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
246=> ((IDictionary)ReadOnlyDictionary).Contains(key);
Microsoft.CodeAnalysis.Extensions.Package (3)
src\roslyn\src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
45=> dictionary.Contains(key);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
345=> ((IDictionary)_dictionary).Contains(key);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
246=> ((IDictionary)ReadOnlyDictionary).Contains(key);
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\roslyn\src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
45=> dictionary.Contains(key);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
345=> ((IDictionary)_dictionary).Contains(key);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
246=> ((IDictionary)ReadOnlyDictionary).Contains(key);
Microsoft.CodeAnalysis.Workspaces (3)
src\roslyn\src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
45=> dictionary.Contains(key);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
345=> ((IDictionary)_dictionary).Contains(key);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
246=> ((IDictionary)ReadOnlyDictionary).Contains(key);
Microsoft.DotNet.Cli.CoreUtils (1)
ExceptionExtensions.cs (1)
16e.Data.Contains(CLI_User_Displayed_Exception);
Microsoft.ML.Core (3)
Utilities\Contracts.cs (3)
115return ex.Data.Contains(IsMarkedKey); 129if (!ex.Data.Contains(SensitivityKey)) 150if (!ex.Data.Contains(SensitivityKey))
Microsoft.ML.CpuMath (3)
src\Microsoft.ML.Core\Utilities\Contracts.cs (3)
115return ex.Data.Contains(IsMarkedKey); 129if (!ex.Data.Contains(SensitivityKey)) 150if (!ex.Data.Contains(SensitivityKey))
Microsoft.TemplateSearch.Common (1)
TemplateDiscoveryMetadata\LegacySearchCacheReader.cs (1)
37if (dict?.Contains(template.Identity) ?? false)
PresentationCore (2)
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (2)
342if (ex.Data.Contains("System.Windows.Input.StylusLogic")) 476if (ex.Data.Contains("System.Windows.Input.StylusLogic"))
PresentationFramework (5)
MS\Internal\Ink\EraserBehavior.cs (1)
417if (!ex.Data.Contains("System.Windows.Ink.StrokeCollection"))
MS\Internal\WindowsRuntime\Generated\WinRT\ExceptionHelpers.cs (2)
285if (dict != null && dict.Contains("__HasRestrictedLanguageErrorObject")) 287if (dict.Contains("__RestrictedErrorObjectReference"))
System\Windows\Markup\BamlRecordReader.cs (1)
4069if (dictionary != null && dictionary.Contains(resourceNameObject))
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
323return ((IDictionary)_dictionary).Contains(key);
ReachFramework (1)
Serialization\Manager\ReachNamespaceInfo.cs (1)
126return _innerDictionary.Contains(type);
Roslyn.Diagnostics.Analyzers (3)
src\roslyn\src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
45=> dictionary.Contains(key);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
345=> ((IDictionary)_dictionary).Contains(key);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
246=> ((IDictionary)ReadOnlyDictionary).Contains(key);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\TypeDescriptor.cs (1)
1975Debug.Assert(cache == null || list == null || !cache.Contains(s_pipelineFilterKeys[pipelineType]), "Earlier pipeline stage should have removed our cache");
System.Configuration.ConfigurationManager (3)
System\Configuration\BaseConfigurationRecord.cs (1)
417if (!((IDictionary)indirectLocationInputs).Contains(configKey))
System\Configuration\LocalFileSettingsProvider.cs (2)
116if (settings.Contains(settingName)) 385if (settings.Contains(settingName))
System.Diagnostics.PerformanceCounter (2)
System\Diagnostics\InstanceDataCollection.cs (1)
66return Dictionary.Contains(objectName);
System\Diagnostics\InstanceDataCollectionCollection.cs (1)
57return Dictionary.Contains(objectName);
System.DirectoryServices (2)
System\DirectoryServices\ActiveDirectory\ActiveDirectoryReplicationMetaData.cs (1)
43return Dictionary.Contains(tempName);
System\DirectoryServices\ResultPropertyCollection.cs (1)
49return Dictionary.Contains(objectName);
System.DirectoryServices.Protocols (1)
System\DirectoryServices\Protocols\common\DirectoryAttribute.cs (1)
276return Dictionary.Contains(objectName);
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\FramingFormat.cs (1)
158if (exception.Data.Contains(FramingEncodingString.ExceptionKey))
System.Text.Json (1)
System\Text\Json\Serialization\Converters\Collection\IDictionaryConverter.cs (1)
25if (!options.AllowDuplicateProperties && collection.Contains(key))
System.Windows.Forms.Design (6)
System\ComponentModel\Design\ComponentDesigner.cs (1)
603if (attributes.Contains(typeof(InheritanceAttribute)))
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
2804if (table.Contains(name))
System\Windows\Forms\Design\ParentControlDesigner.cs (4)
437bool hasLocation = (defaultValues is not null && defaultValues.Contains("Location")); 438bool hasSize = (defaultValues is not null && defaultValues.Contains("Size")); 444if (defaultValues is not null && defaultValues.Contains("Offset")) 538if (defaultValues is not null && defaultValues.Contains("ToolboxSnapDragDropEventArgs"))