Implemented interface member:
property
Count
System.Collections.ICollection.Count
1 override of Count
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (1)
1264public override int Count => _table.Count;
118 references to 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)
634bool uniqueClientNamesExist = uniqueClientListNames.Count > 0;
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (2)
Utility\Collection.cs (1)
137get { return _container.Count; }
XML\XmlPersistence.cs (1)
349if (ht == null || ht.Count <= 0)
PresentationCore (3)
MS\Internal\FontCache\TypefaceMetricsCache.cs (1)
50if (_hashTable.Count >= MaxCacheCapacity)
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)
907get { return _baseDictionary.Count; } 2329int count = _baseDictionary.Count; 2390int 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\runtime\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 (1)
System\ComponentModel\Design\DesigntimeLicenseContextSerializer.cs (1)
44writer.Write(context._savedLicenseKeys.Count);
System.Configuration.ConfigurationManager (17)
src\runtime\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)
207&& ((_sectionRecords == null) || (_sectionRecords.Count == 0)) 208&& ((_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 (9)
System\Data\Common\DbConnectionStringBuilder.cs (1)
416PropertyDescriptor[] 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 (2)
890if (_pointers.Count > 0) 1688if (_pointers.Count > 0)
System.Diagnostics.PerformanceCounter (4)
System\Diagnostics\PerformanceCounterCategory.cs (2)
430if (categorySample._instanceNameTable.Count == 0) 433string[] instanceNames = new string[categorySample._instanceNameTable.Count];
System\Diagnostics\PerformanceCounterLib.cs (2)
1767string[] keys = new string[_categorySample._instanceNameTable.Count]; 1769int[] indexes = new int[_categorySample._instanceNameTable.Count];
System.DirectoryServices (3)
System\DirectoryServices\ActiveDirectory\ActiveDirectorySite.cs (3)
978if (nonBridgHeadTable.Count != 0) 985if (nonBridgHeadTable.Count > 1) 994if (nonBridgHeadTable.Count > 1)
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\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (2)
579if (array.Length - arrayIndex < Count) 1264public override int Count => _table.Count;
src\runtime\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)
201if (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)
809DictionaryEntry[] 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)
1606key = $"{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)
366_scriptExtensions = new Hashtable(_stylesheet.ScriptObjectTypes.Count); 369if (_stylesheet.ScriptObjectTypes.Count > 0)
System.Runtime.Caching (2)
System\Runtime\Caching\MemoryCacheStore.cs (2)
245return _entries.Count; 256ArrayList 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.ServiceModel.Primitives (2)
System\ServiceModel\Security\TimeBoundedCache.cs (2)
42return _entries.Count; 189int count = _entries.Count;
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Regex.cs (1)
480result = new int[caps.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)