Implemented interface member:
44 references to Count
DesignSurfaceExt (1)
NameCreationServiceImp.cs (1)
25while (i < cc.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
Microsoft.VisualBasic.Forms.Tests (2)
System\Windows\Forms\WindowsFormsApplicationBaseTests.vb (2)
85OpenForms.Count.Should.Be(0) 87OpenForms.Count.Should.Be(1)
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)
223return pmc.Count > 0 ? pmc[0] : null;
System\Diagnostics\ProcessManager.Linux.cs (1)
54for (int i = 0; i < modules.Count; i++)
System.Drawing.Common.Tests (1)
Design\CategoryNameCollectionTests.cs (1)
32for (int i = 0; i < sourceCollection.Count; i++)
System.Net.Security (2)
System\Net\Security\NegotiateAuthentication.cs (1)
461if (_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)
987if (s_forms?.Count > 0) 989HashSet<Form> processedForms = new(s_forms.Count); 992for (int i = s_forms.Count - 1; i > -1; i--) 1017i = s_forms.Count; 1021i = Math.Min(i, s_forms.Count); // Form can be removed from the collection, we need to check it 1026while (s_forms.Count > 0) 1037s_forms.RemoveAt(s_forms.Count - 1);
System.Windows.Forms.Design (14)
System\ComponentModel\Design\DesignerHost.cs (2)
720IComponent[] components = new IComponent[Components.Count]; 775while (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)
2209if (components is null || components.Count == 0) 2215selComps = new IComponent[components.Count - 1]; 3130cmd.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)
856if (components is not null && components.Count > 0) 862trans = host.CreateTransaction(string.Format(SR.CommandSetLockControls, components.Count)); 1301bool 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)
1183for (int i = 0; i < components.Count; i++)
System\Windows\Forms\Design\DocumentDesigner.cs (1)
845_suspendedComponents = new(container.Components.Count + 1);
System.Windows.Forms.Tests (2)
System\Windows\Forms\ApplicationTests.cs (2)
582Application.OpenForms[rnd.Next(1, Application.OpenForms.Count - 1)].Close(); 621Assert.Equal(1 + childFormCount + addFormCount - removedFormCount, Application.OpenForms.Count);
System.Windows.Forms.UI.IntegrationTests (5)
ApplicationTests.cs (4)
28Assert.Equal(expectedFormCount, Application.OpenForms.Count); 30Assert.Equal(expectedFormCount, Application.OpenForms.Count); 32Assert.Equal(expectedFormCount, Application.OpenForms.Count); 34Assert.Equal(expectedFormCount, Application.OpenForms.Count);
Infra\ControlTestBase.cs (1)
156if (Application.OpenForms.Count > 0)
VisualBasicRuntimeTest (1)
Program.cs (1)
101valid = forms.Count == 1