401 implementations of Count
dotnet-svcutil-lib (9)
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (1)
56public int Count
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
70public int Count
Microsoft.Build (6)
Microsoft.Build.Engine.UnitTests (1)
Microsoft.Build.Framework (14)
Microsoft.Build.Tasks.Core (4)
Microsoft.Build.Utilities.Core (3)
Microsoft.CodeAnalysis (16)
Microsoft.CodeAnalysis.CodeStyle (16)
Microsoft.CodeAnalysis.Collections.Package (16)
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
Microsoft.CodeAnalysis.Workspaces (16)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (16)
Microsoft.Maui.Controls (4)
Microsoft.VisualBasic.Core (1)
MSBuild (3)
MSBuildTaskHost (4)
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (1)
532public int Count
PresentationCore (54)
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (1)
208public int Count
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (1)
208public int Count
PresentationFramework (22)
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (1)
207public int Count
System.CodeDom (2)
System.Collections (14)
System.Collections.Concurrent (3)
System.Collections.Immutable (13)
System.Collections.NonGeneric (8)
System.Collections.Specialized (8)
System.ComponentModel.TypeConverter (7)
System.Configuration.ConfigurationManager (7)
System.Data.Common (8)
System.Data.Odbc (1)
System.Data.OleDb (1)
System.Diagnostics.EventLog (1)
System.Diagnostics.Process (1)
System.Diagnostics.TraceSource (1)
System.DirectoryServices (3)
System.DirectoryServices.AccountManagement (2)
System.Drawing.Common (4)
System.Linq.Expressions (1)
System.Management (4)
System.Net.Primitives (1)
System.ObjectModel (2)
System.Private.CoreLib (24)
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueue.cs (1)
256public int Count
System.Private.Xml (6)
System.Security.AccessControl (2)
System.Security.Cryptography (5)
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
108public int Count
System\Security\Cryptography\X509Certificates\X509ChainElementCollection.cs (1)
25public int Count
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (1)
22public int Count
System.Security.Cryptography.Pkcs (4)
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
108public int Count
System.Security.Cryptography.Xml (4)
System.Security.Permissions (2)
System.ServiceModel.Primitives (1)
System.Text.RegularExpressions (3)
System.Windows.Forms (42)
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (1)
79public int Count
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedIndexCollection.cs (1)
23public int Count
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedItemCollection.cs (1)
27public int Count
System\Windows\Forms\Controls\ListBoxes\ListBox.IntegerCollection.cs (1)
26public int Count
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedIndexCollection.cs (1)
24public int Count
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (1)
32public int Count
System\Windows\Forms\Controls\ListView\ListView.CheckedIndexCollection.cs (1)
26public int Count
System\Windows\Forms\Controls\ListView\ListView.CheckedListViewItemCollection.cs (1)
31public int Count
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (1)
69public int Count
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (1)
26public int Count
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (1)
84public int Count
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyTabCollection.cs (1)
24public int Count
System.Windows.Forms.Design (4)
System.Windows.Forms.Primitives (1)
System.Windows.Forms.Tests (1)
System.Xaml.Tests (2)
UIAutomationClient (1)
982 references to Count
DesignSurfaceExt (1)
dotnet-svcutil-lib (94)
InMemory.FunctionalTests (1)
InteropClient (5)
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Microsoft.AspNetCore.JsonPatch (6)
Microsoft.AspNetCore.JsonPatch.Tests (4)
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Microsoft.AspNetCore.OutputCaching.Tests (2)
Microsoft.AspNetCore.ResponseCaching.Tests (2)
Microsoft.Build (15)
Microsoft.Build.BuildCheck.UnitTests (1)
Microsoft.Build.Engine.OM.UnitTests (2)
Microsoft.Build.Engine.UnitTests (5)
Microsoft.Build.Framework (3)
Microsoft.Build.Tasks.Core (1)
Microsoft.Build.UnitTests.Shared (1)
Microsoft.Build.Utilities.Core (1)
Microsoft.CodeAnalysis (4)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Microsoft.CodeAnalysis.Features (2)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.UnitTests (47)
Collections\List\IList.NonGeneric.Tests.cs (39)
48while (collection.Count < numberOfItemsToAdd)
139if (casted.Count > 0 && !casted.IsFixedSize && !casted.IsReadOnly)
149if (casted.Count > 0 && !casted.IsFixedSize && !casted.IsReadOnly)
162if (casted.Count > 0 && !casted.IsReadOnly)
175if (casted.Count > 0 && !casted.IsFixedSize && !casted.IsReadOnly)
256Assert.Equal(count, list.Count);
270Assert.Equal(count, list.Count);
282Assert.Equal(count, list.Count);
381Assert.Equal(count + 1, collection.Count);
397Assert.Equal(count * 2, collection.Count);
414Assert.Equal(count, collection.Count);
429Assert.Equal(count, collection.Count);
446Assert.Equal(count + 2, collection.Count);
460Assert.Equal(5, collection.Count);
500Assert.Equal(1, collection.Count);
512Assert.Equal(count, collection.Count);
545Assert.Equal(count, collection.Count);
550Assert.Equal(0, collection.Count);
610Assert.Equal(count + 2, collection.Count);
741Assert.Equal(count, list.Count);
754Assert.Equal(count + 1, list.Count);
767Assert.Equal(count, list.Count);
781Assert.Equal(count + 1, list.Count);
795Assert.Equal(count + 1, list.Count);
810Assert.Equal(count + 1, list.Count);
825Assert.Equal(count + 1, list.Count);
841Assert.Equal(count + 2, list.Count);
889Assert.Equal(count, collection.Count);
912Assert.Equal(count, list.Count);
932Assert.Equal(count - 1, collection.Count);
951Assert.Equal(count - 1, collection.Count);
969Assert.Equal(count - 1, collection.Count);
1001Assert.Equal(count, collection.Count);
1019Assert.Equal(count, list.Count);
1033Assert.Equal(count, list.Count);
1045Assert.Equal(count, list.Count);
1056Assert.Equal(count, list.Count);
1060Assert.Equal(index, list.Count);
1075Assert.Equal(count - index - 1, list.Count);
Microsoft.CodeAnalysis.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.Extensions.Compliance.Redaction (1)
Microsoft.Extensions.Diagnostics.Probes (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Http.Resilience (1)
Microsoft.Extensions.Telemetry (1)
Microsoft.Maui.Controls (84)
TemplatedItemsList.cs (34)
340 get { return ListProxy.Count; }
684 var contentItems = new List<TItem>(items.Count);
685 for (var i = 0; i < items.Count; i++)
805 SetIndex(_templatedObjects[i], i + e.NewItems.Count);
807 newItems = new List<TemplatedItemsList<TView, TItem>>(e.NewItems.Count);
809 for (var i = 0; i < e.NewItems.Count; i++)
824 for (int i = removeIndex + e.OldItems.Count; i < _templatedObjects.Count; i++)
827 oldItems = new List<TemplatedItemsList<TView, TItem>>(e.OldItems.Count);
828 for (var i = 0; i < e.OldItems.Count; i++)
847 oldItems = new List<TemplatedItemsList<TView, TItem>>(e.OldItems.Count);
848 newItems = new List<TemplatedItemsList<TView, TItem>>(e.NewItems.Count);
850 for (var i = 0; i < e.OldItems.Count; i++)
878 for (int i = moveIndex + e.OldItems.Count; i <= e.NewStartingIndex; i++)
886 SetIndex(item, GetIndex(item) + e.OldItems.Count);
890 oldItems = new List<TemplatedItemsList<TView, TItem>>(e.OldItems.Count);
892 for (var i = 0; i < e.OldItems.Count; i++)
902 insertIndex -= e.OldItems.Count - 1;
967 if (ListProxy.Count == 0)
1000 maxindex = Math.Max(maxindex, e.NewStartingIndex + e.NewItems.Count);
1002 maxindex = Math.Max(maxindex, e.OldStartingIndex + e.OldItems.Count);
1012 SetIndex(_templatedObjects[i], i + e.NewItems.Count);
1014 _templatedObjects.InsertRange(e.NewStartingIndex, Enumerable.Repeat<TItem>(null, e.NewItems.Count));
1035 for (int i = moveIndex + e.OldItems.Count; i <= e.NewStartingIndex; i++)
1044 SetIndex(item, GetIndex(item) + e.OldItems.Count);
1048 TItem[] itemsToMove = _templatedObjects.Skip(e.OldStartingIndex).Take(e.OldItems.Count).ToArray();
1050 _templatedObjects.RemoveRange(e.OldStartingIndex, e.OldItems.Count);
1062 for (int i = removeIndex + e.OldItems.Count; i < _templatedObjects.Count; i++)
1065 var items = new TItem[e.OldItems.Count];
1076 _templatedObjects.RemoveRange(e.OldStartingIndex, e.OldItems.Count);
1091 for (var i = 0; i < oldItems.Count; i++)
1171 for (var i = 0; i < e.NewItems.Count; i++)
1180 for (var i = 0; i < e.OldItems.Count; i++)
1189 for (var i = 0; i < e.OldItems.Count; i++)
1304 var newList = new List<string>(list.Count);
Microsoft.Maui.Controls.Xaml (2)
Microsoft.ML.Core (8)
Microsoft.VisualBasic.Core (1)
Microsoft.VisualStudio.LanguageServices (2)
MSBuild (1)
MSBuildTaskHost (2)
PresentationBuildTasks (1)
PresentationCore (14)
PresentationFramework (226)
Shared (1)
System.Collections (3)
System.Collections.Concurrent (2)
System.Collections.Immutable (1)
System.Collections.NonGeneric (4)
System.ComponentModel.Annotations (1)
System.ComponentModel.Composition (1)
System.ComponentModel.TypeConverter (30)
System.Data.Common (5)
System.Data.Odbc (1)
System.Diagnostics.Process (1)
System.Drawing.Common.Tests (2)
System.Linq (3)
System.Net.Http (1)
System.Net.HttpListener (2)
System.Net.Mail (1)
System.Net.NameResolution (1)
System.Net.Primitives (2)
System.Net.Quic (1)
System.Net.Requests (1)
System.Net.Security (1)
System.Net.Sockets (26)
System.Net.WebSockets (1)
System.ObjectModel (1)
System.Private.CoreLib (29)
System.Private.DataContractSerialization (2)
System.Private.Windows.Core (1)
System.Private.Xml (22)
System.Text.Json (3)
System.Threading.Tasks.Parallel (1)
System.Windows.Controls.Ribbon (3)
System.Windows.Forms (67)
System.Windows.Forms.Design (58)
System.Windows.Forms.Design.Tests (17)
System.Windows.Forms.Tests (116)
System.Xaml (10)
xunit.assert (2)