Implemented interface member:
65 references to Count
Microsoft.AspNetCore.Authentication.Negotiate (4)
Internal\LdapAdapter.cs (4)
55if (searchResponse.Entries.Count > 0) 57if (searchResponse.Entries.Count > 1 && logger.IsEnabled(LogLevel.Warning)) 109if (searchResponse.Entries.Count > 0) 111if (searchResponse.Entries.Count > 1 && logger.IsEnabled(LogLevel.Warning))
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.WinFormsAppContext.vb (1)
45If forms.Count > 0 Then
System.ComponentModel.TypeConverter (2)
System\Security\Authentication\ExtendedProtection\ExtendedProtectionPolicyTypeConverter.cs (2)
43if (policy.CustomServiceNames?.Count > 0) 45customServiceNames = new object[policy.CustomServiceNames.Count];
System.Diagnostics.Process (2)
System\Diagnostics\Process.Unix.cs (1)
219return pmc.Count > 0 ? pmc[0] : null;
System\Diagnostics\ProcessManager.Linux.cs (1)
60for (int i = 0; i < modules.Count; i++)
System.DirectoryServices (18)
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchema.cs (2)
427if ((res.Properties[PropertyManager.IsDefunct] != null) && (res.Properties[PropertyManager.IsDefunct].Count > 0)) 481if ((res.Properties[PropertyManager.IsDefunct] != null) && (res.Properties[PropertyManager.IsDefunct].Count > 0))
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaClassCollection.cs (1)
145int currentCount = schemaClasses.Count;
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaProperty.cs (2)
983if (linkedProperties.Count != 1) 1113if ((propertyValues == null) || (propertyValues.Count < 1))
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaPropertyCollection.cs (1)
147int currentCount = properties.Count;
System\DirectoryServices\ActiveDirectory\ApplicationPartition.cs (1)
268appNCDnsName = (res.Properties[PropertyManager.DnsRoot].Count > 0) ? (string)res.Properties[PropertyManager.DnsRoot][0]! : null;
System\DirectoryServices\ActiveDirectory\ConfigSet.cs (2)
709if (replicaLocations.Count > 0) 711string replicaName = Utils.GetAdamDnsHostNameFromNTDSA(_context, (string)replicaLocations[Utils.GetRandomIndex(replicaLocations.Count)]!);
System\DirectoryServices\ActiveDirectory\Domain.cs (3)
509if (collection.Count == 0) 516Debug.Assert(collection.Count == 1); 1120if (res.Properties[PropertyManager.TrustParent].Count > 0)
System\DirectoryServices\ActiveDirectory\Forest.cs (2)
321if (collection.Count != 0) 323Debug.Assert(collection.Count == 1);
System\DirectoryServices\ActiveDirectory\ForestTrustRelationshipInformation.cs (2)
97int toplevelNamesCount = TopLevelNames.Count; 99int trustedDomainCount = TrustedDomainInformation.Count;
System\DirectoryServices\ActiveDirectory\PropertyManager.cs (1)
152if ((propertyValues == null) || (propertyValues.Count < 1))
System\DirectoryServices\ActiveDirectory\Utils.cs (1)
1190rangeStart += res.Properties[propertyNameWithRangeInfo].Count;
System.DirectoryServices.AccountManagement (5)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (4)
1491if ((sr.Properties["primaryGroupID"].Count > 0) && 1492(sr.Properties["objectSid"].Count > 0)) 1494Debug.Assert(sr.Properties["primaryGroupID"].Count == 1); 1495Debug.Assert(sr.Properties["objectSid"].Count == 1);
System\DirectoryServices\AccountManagement\AD\DSPropertyCollection.cs (1)
71return (_pc != null ? _pc.Count : _rc.Count);
System.DirectoryServices.Protocols (8)
System\DirectoryServices\Protocols\ldap\LdapPartialResultsProcessor.cs (8)
117if (asyncResult._response != null && (asyncResult._response.Entries.Count > 0 || asyncResult._response.References.Count > 0)) 198for (int i = 0; i < asyncResult._response.Entries.Count; i++) 207for (int i = 0; i < asyncResult._response.References.Count; i++) 264for (int i = 0; i < asyncResult._response.Entries.Count; i++) 274for (int i = 0; i < asyncResult._response.References.Count; i++) 320for (int i = 0; i < newResult.Entries.Count; i++) 328for (int i = 0; i < newResult.References.Count; i++)
System.IO.FileSystem.AccessControl (2)
System\Security\AccessControl\FileSystemSecurity.cs (2)
175for (int i = 0; i < rules.Count; i++) 218for (int i = 0; i < rules.Count; i++)
System.Net.Security (2)
System\Net\Security\NegotiateAuthentication.cs (1)
480if (_extendedProtectionPolicy.CustomServiceNames.Count == 0)
System\Security\Authentication\ExtendedProtection\ExtendedProtectionPolicy.cs (1)
32if (customServiceNames != null && customServiceNames.Count == 0)
System.Windows.Forms (7)
System\Windows\Forms\Application.cs (7)
1020if (s_forms?.Count > 0) 1022HashSet<Form> processedForms = new(s_forms.Count); 1025for (int i = s_forms.Count - 1; i > -1; i--) 1047i = s_forms.Count; 1051i = Math.Min(i, s_forms.Count); // Form can be removed from the collection, we need to check it 1056while (s_forms.Count > 0) 1067s_forms.RemoveAt(s_forms.Count - 1);
System.Windows.Forms.Design (14)
System\ComponentModel\Design\DesignerHost.cs (2)
710IComponent[] components = new IComponent[Components.Count]; 765while (Components.Count > 0)
System\ComponentModel\Design\ReferenceService.cs (1)
84_references = new(container.Components.Count);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (1)
478if (c.Site.TryGetService(out INestedContainer? nested) && nested.Components.Count > 0)
System\Windows\Forms\Design\CommandSet.cs (3)
2204if (components is null || components.Count == 0) 2210selComps = new IComponent[components.Count - 1]; 3125cmd.Enabled = host.Container.Components.Count > 1;
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (1)
34suspendedComponents = new(container.Components.Count);
System\Windows\Forms\Design\ControlCommandSet.cs (3)
853if (components is not null && components.Count > 0) 859trans = host.CreateTransaction(string.Format(SR.CommandSetLockControls, components.Count)); 1295bool enable = (comps is not null && comps.Count > 2 && controlsOnlySelection);
System\Windows\Forms\Design\ControlDesigner.cs (1)
590for (int i = 0; i < nc.Components.Count; i++)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1177for (int i = 0; i < components.Count; i++)
System\Windows\Forms\Design\DocumentDesigner.cs (1)
803_suspendedComponents = new(container.Components.Count + 1);