67 references to Count
System.Private.CoreLib (67)
src\System\Reflection\RuntimeCustomAttributeData.cs (30)
25return pcas.Count > 0 ? GetCombinedList(cad, ref pcas) : cad; 35return pcas.Count > 0 ? GetCombinedList(cad, ref pcas) : cad; 45return pcas.Count > 0 ? GetCombinedList(cad, ref pcas) : cad; 95return pcas.Count > 0 ? GetCombinedList(cad, ref pcas) : cad; 100Debug.Assert(pseudoAttributes.Count != 0); 102CustomAttributeData[] pca = new CustomAttributeData[customAttributes.Count + pseudoAttributes.Count]; 103customAttributes.CopyTo(pca, pseudoAttributes.Count); 104for (int i = 0; i < pseudoAttributes.Count; i++) 1262object[] attributes = GetCustomAttributes(type.GetRuntimeModule(), type.MetadataToken, pcas.Count, caType); 1263if (pcas.Count > 0) pcas.CopyTo(attributes, attributes.Length - pcas.Count); 1270for (int i = 0; i < pcas.Count; i++) 1280object[] typedResult = CreateAttributeArrayHelper(caType, result.Count); 1281for (int i = 0; i < result.Count; i++) 1304object[] attributes = GetCustomAttributes(method.GetRuntimeModule(), method.MetadataToken, pcas.Count, caType); 1305if (pcas.Count > 0) pcas.CopyTo(attributes, attributes.Length - pcas.Count); 1312for (int i = 0; i < pcas.Count; i++) 1322object[] typedResult = CreateAttributeArrayHelper(caType, result.Count); 1323for (int i = 0; i < result.Count; i++) 1367object[] attributes = GetCustomAttributes(field.GetRuntimeModule(), field.MetadataToken, pcas.Count, caType); 1368if (pcas.Count > 0) pcas.CopyTo(attributes, attributes.Length - pcas.Count); 1379object[] attributes = GetCustomAttributes(parameter.GetRuntimeModule()!, parameter.MetadataToken, pcas.Count, caType); 1380if (pcas.Count > 0) pcas.CopyTo(attributes, attributes.Length - pcas.Count); 1476object[] result = CreateAttributeArrayHelper(attributeFilterType, attributes.Count + pcaCount); 1477for (int i = 0; i < attributes.Count; i++) 1745if (derivedAttributes.Count == 0) 1748for (int i = 0; i < derivedAttributes.Count; i++)
src\System\RuntimeType.CoreCLR.cs (37)
76Debug.Assert(index < Count); 1194if (list.Count > 0) 1358for (int j = 0; j < list.Count; j++) 2691methods.Count + 2692constructors.Count + 2693properties.Count + 2694events.Count + 2695fields.Count + 2696nestedTypes.Count]; 2699methods.CopyTo(members, i); i += methods.Count; 2700constructors.CopyTo(members, i); i += constructors.Count; 2701properties.CopyTo(members, i); i += properties.Count; 2702events.CopyTo(members, i); i += events.Count; 2703fields.CopyTo(members, i); i += fields.Count; 2704nestedTypes.CopyTo(members, i); i += nestedTypes.Count; 2815if (candidates.Count == 0) 2822if (candidates.Count == 1) 2828for (int j = 1; j < candidates.Count; j++) 2836return System.DefaultBinder.FindMostDerivedNewSlotMeth(candidates.ToArray(), candidates.Count) as MethodInfo; 2851if (candidates.Count == 0) 2854if (types.Length == 0 && candidates.Count == 1) 2879if (candidates.Count == 0) 2887if (candidates.Count == 1) 3063totalCount += methods.Count; 3072totalCount += constructors.Count; 3081totalCount += properties.Count; 3090totalCount += events.Count; 3099totalCount += fields.Count; 3108totalCount += nestedTypes.Count; 3115methods.CopyTo(compressMembers, i); i += methods.Count; 3116constructors.CopyTo(compressMembers, i); i += constructors.Count; 3117properties.CopyTo(compressMembers, i); i += properties.Count; 3118events.CopyTo(compressMembers, i); i += events.Count; 3119fields.CopyTo(compressMembers, i); i += fields.Count; 3120nestedTypes.CopyTo(compressMembers, i); i += nestedTypes.Count; 3886MethodBase[] cons = new MethodBase[candidates.Count]; 3899for (int i = 0; i < candidates.Count; i++)