Implemented interface member:
property
Count
System.Collections.ICollection.Count
1 override of Count
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (1)
1264public override int Count => _table.Count;
131 references to Count
BinaryFormatTests (12)
FormatTests\FormattedObject\BinaryFormatWriterTests.cs (4)
54deserializedHashtable.Count.Should().Be(hashtable.Count); 111deserializedHashtable.Count.Should().Be(hashtable.Count);
FormatTests\FormattedObject\HashTableTests.cs (6)
109deserialized.Count.Should().Be(hashtable.Count); 132deserialized!.Count.Should().Be(hashtable.Count); 149deserialized!.Count.Should().Be(hashtable.Count);
SerializationRecordExtensionsTests.cs (2)
37deserializedHashtable.Count.Should().Be(hashtable.Count);
dotnet-svcutil-lib (29)
FrameworkFork\Microsoft.CodeDom\Compiler\TempFiles.cs (4)
158return _files.Count; 165get { return _files.Count; } 261if (_files != null && _files.Count > 0) 263string[] fileNames = new string[_files.Count];
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (5)
66get { return _names.Count; } 1598int newState = stateTable.Count - 1; 2270int i = _elements.Count; 2288Debug.Assert(_elements.Count > 0); 2289context.AllElementsSet = new BitSet(_elements.Count); //TODO if already non-null can clear
FrameworkFork\Microsoft.Xml\Xml\schema\NamespaceList.cs (1)
394return ((_type == ListType.Set) && ((_set == null) || _set.Count == 0));
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaNamespaceManager.cs (2)
30if (namespaces != null && namespaces.Count > 0) 50if (namespaces != null && namespaces.Count > 0)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaCollection.cs (2)
73get { return _collection.Count; } 317get { return _collection.Count; }
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (1)
972DictionaryEntry[] oldLocations = new DictionaryEntry[_schemaLocations.Count];
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (1)
341DictionaryEntry[] oldLocations = new DictionaryEntry[schemaLocations.Count];
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (1)
796if (_namespaces != null && _namespaces.Count > 0)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Compilation.cs (1)
241get { return _assemblies != null && _assemblies.Count > 0; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\NameTable.cs (1)
95Array a = Array.CreateInstance(type, _table.Count);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (1)
918TypeDesc[] typeDescs = new TypeDesc[uniqueTypeDescs.Count];
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (2)
573if (qnIndexes.Count > 0) 3786key = a.FullName + ", " + s_nameToAssemblyMap.Count;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializer.cs (2)
612if (pendingKeys.Count > 0) 614XmlMapping[] pendingMappings = new XmlMapping[pendingKeys.Count];
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializerNamespaces.cs (3)
90get { return Namespaces.Count; } 97if (_namespaces == null || _namespaces.Count == 0) 123if (_namespaces == null || _namespaces.Count == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\TimeBoundedCache.cs (2)
43return _entries.Count; 202int count = _entries.Count;
Microsoft.Build.Tasks.Core (1)
RedistList.cs (1)
593bool uniqueClientNamesExist = uniqueClientListNames.Count > 0;
Microsoft.Build.Tasks.UnitTests (2)
ResolveNonMSBuildProjectOutput_Tests.cs (2)
259Assert.Equal(2, unresolvedOutputs.Count); // "Two unresolved refs expected for case 1" 287Assert.Equal(2, resolvedOutputs.Count); // "Two resolved refs expected for case 3"
PresentationCore (7)
MS\Internal\FontCache\TypefaceMetricsCache.cs (1)
50if (_hashTable.Count >= MaxCacheCapacity)
System\Windows\Media\Animation\Clock.cs (2)
4213if (_objectTable.Count > 0) 4216int[] idTable = new int[_objectTable.Count];
System\Windows\Media\Animation\Timeline.cs (2)
992if (_objectTable.Count > 0) 995int[] idTable = new int[_objectTable.Count];
System\Windows\Media\Imaging\ImagingCache.cs (2)
69if (table.Count == MAX_CACHE_SIZE) 89if (table.Count == MAX_CACHE_SIZE)
PresentationFramework (9)
MS\Internal\WeakHashSet.cs (1)
60return _hashTable.Count;
MS\Internal\WeakHashtable.cs (1)
78int hashCount = Count;
MS\Internal\WeakObjectHashtable.cs (1)
76int hashCount = Count;
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
295if (namespaceMaps != null && namespaceMaps.Count > 0)
System\Windows\Markup\BamlMapTable.cs (1)
365if (ObjectHashTable.Count == 0)
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
183object[] keys = new object[result.Count];
System\Windows\ResourceDictionary.cs (3)
903get { return _baseDictionary.Count; } 2325int count = _baseDictionary.Count; 2386int count = _baseDictionary.Count;
ReachFramework (2)
Serialization\Manager\NullPackagingPolicy.cs (1)
489if(_fontsCache.Count == 0)
Serialization\Manager\XpsPackagingPolicy.cs (1)
945if(_fontsCache.Count == 0)
System.CodeDom (4)
src\libraries\Common\src\System\IO\TempFileCollection.cs (4)
104public int Count => _files.Count; 106int ICollection.Count => _files.Count; 198if (_files != null && _files.Count > 0) 200string[] fileNames = new string[_files.Count];
System.Collections.NonGeneric (1)
System\Collections\DictionaryBase.cs (1)
31get { return _hashtable == null ? 0 : _hashtable.Count; }
System.Collections.Specialized (3)
System\Collections\Specialized\HybridDictionary.cs (1)
151return hashtable.Count;
System\Collections\Specialized\NameObjectCollectionBase.cs (1)
160return (_entriesTable.Count > 0); // any entries with keys?
System\Collections\Specialized\StringDictionary.cs (1)
45return contents.Count;
System.ComponentModel.TypeConverter (2)
System\ComponentModel\Design\DesigntimeLicenseContextSerializer.cs (1)
44writer.Write(context._savedLicenseKeys.Count);
System\ComponentModel\WeakHashtable.cs (1)
49int hashCount = Count;
System.Configuration.ConfigurationManager (17)
src\libraries\Common\src\System\IO\TempFileCollection.cs (4)
104public int Count => _files.Count; 106int ICollection.Count => _files.Count; 198if (_files != null && _files.Count > 0) 200string[] fileNames = new string[_files.Count];
System\Configuration\BaseConfigurationRecord.cs (2)
211&& ((_sectionRecords == null) || (_sectionRecords.Count == 0)) 212&& ((_factoryRecords == null) || (_factoryRecords.Count == 0))
System\Configuration\LocalFileSettingsProvider.cs (2)
188if (roamingUserSettings.Count > 0) 193if (localUserSettings.Count > 0)
System\Configuration\MgmtConfigurationRecord.cs (4)
58private bool HasRemovedSectionsOrGroups => ((_removedSections != null) && (_removedSections.Count > 0)) 59|| ((_removedSectionGroups != null) && (_removedSectionGroups.Count > 0)); 61private bool HasRemovedSections => (_removedSections != null) && (_removedSections.Count > 0); 1910(_removedSections.Count > 0))
System\Configuration\Provider\ProviderCollection.cs (1)
25public int Count => _hashtable.Count;
System\Configuration\SectionUpdates.cs (3)
27internal bool IsEmpty => (_groups.Count == 0) && (_sections.Count == 0); 72IsNew = allSubgroupsAreNew && (_cMoved == _sections.Count);
System\Configuration\SettingsPropertyCollection.cs (1)
109public int Count { get { return _hashtable.Count; } }
System.Data.Common (10)
System\Data\Common\DbConnectionStringBuilder.cs (1)
413PropertyDescriptor[] properties = new PropertyDescriptor[descriptors.Count];
System\Data\xmlsaver.cs (6)
341return props != null && props.Count != 0; 807bool isMultipleNamespaceAndStreamingWriter = (_namespaces.Count > 1 && !genSecondary); 828rootSchema.SetAttribute(Keywords.MSD_FRAGMENTCOUNT, Keywords.MSDNS, _namespaces.Count.ToString(CultureInfo.InvariantCulture)); 1668if (rel.ExtendedProperties.Count > 0) 1679if (unique.ExtendedProperties.Count > 0) 1705if (fk.ExtendedProperties.Count > 0)
System\Xml\XmlDataDocument.cs (3)
890if (_pointers.Count > 0) 1429if (_pointers.Count > 0) 1690if (_pointers.Count > 0)
System.Net.HttpListener (1)
System\Net\HttpListener.cs (1)
250if (_uriPrefixes.Count > 0)
System.Net.Primitives (1)
System\Net\CookieContainer.cs (1)
297if (m_domainTable.Count > m_count || pathList.Count > m_maxCookiesPerDomain)
System.Net.WebHeaderCollection (1)
System\Net\HeaderInfoTable.cs (1)
142Debug.Assert(headers.Count == Items);
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (2)
579if (array.Length - arrayIndex < Count) 1264public override int Count => _table.Count;
src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (2)
100if (value == null || value.Count == 0) 106ArrayList list = new ArrayList(value.Count);
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\ExtensionDataReader.cs (1)
802prefix = (ns.Length == 0) ? string.Empty : "p" + s_nsToPrefixTable.Count;
System.Private.Uri (1)
System\UriSyntax.cs (1)
206if (s_tempTable.Count >= c_MaxCapacity)
System.Private.Xml (10)
System\Xml\Schema\XmlSchemaCollection.cs (2)
65get { return _collection.Count; } 267get { return _collection.Count; }
System\Xml\Schema\XmlSchemaSet.cs (1)
821DictionaryEntry[] oldLocations = new DictionaryEntry[_schemaLocations.Count];
System\Xml\Schema\XmlSchemaValidator.cs (1)
330DictionaryEntry[] oldLocations = new DictionaryEntry[schemaLocations.Count];
System\Xml\Serialization\XmlSchemaImporter.cs (1)
818TypeDesc[] typeDescs = new TypeDesc[uniqueTypeDescs.Count];
System\Xml\Serialization\XmlSerializationWriter.cs (1)
1559key = $"{a.FullName}, {s_nameToAssemblyMap.Count}";
System\Xml\Xsl\IlGen\XmlILModule.cs (1)
247methodsBaked = new Hashtable(_methods.Count);
System\Xml\Xsl\XsltOld\InputScope.cs (1)
104return _variables.Count;
System\Xml\Xsl\XsltOld\Processor.cs (2)
367_scriptExtensions = new Hashtable(_stylesheet.ScriptObjectTypes.Count); 370if (_stylesheet.ScriptObjectTypes.Count > 0)
System.Runtime.Caching (2)
System\Runtime\Caching\MemoryCacheStore.cs (2)
248return _entries.Count; 259ArrayList entries = new ArrayList(_entries.Count);
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\AncestralNamespaceContextManager.cs (1)
69object[] attrs = new object[nsLocallyDeclared.Count];
System\Security\Cryptography\Xml\C14NAncestralNamespaceContextManager.cs (1)
59object[] attrs = new object[nsLocallyDeclared.Count];
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\Regex.cs (1)
355result = new int[caps.Count];
System\Text\RegularExpressions\RegexTree.cs (2)
50Debug.Assert(captureNumberSparseMapping is null || captureCount == captureNumberSparseMapping.Count); 51Debug.Assert(captureNameToNumberMapping is null || captureCount == captureNameToNumberMapping.Count);
System.Text.RegularExpressions.Generator (2)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexTree.cs (2)
50Debug.Assert(captureNumberSparseMapping is null || captureCount == captureNumberSparseMapping.Count); 51Debug.Assert(captureNameToNumberMapping is null || captureCount == captureNameToNumberMapping.Count);
UIAutomationClient (1)
MS\Internal\Automation\ProxyManager.cs (1)
552count = _imageOnlyHandlers.Count;
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\MSAAEventDispatcher.cs (3)
72if (_hwndTable.Count == 0) 136if (eventTable.Count == 0) 141if (_hwndTable.Count == 0)