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)
69Debug.Assert(index < Count); 1187if (list.Count > 0) 1351for (int j = 0; j < list.Count; j++) 2667methods.Count + 2668constructors.Count + 2669properties.Count + 2670events.Count + 2671fields.Count + 2672nestedTypes.Count]; 2675methods.CopyTo(members, i); i += methods.Count; 2676constructors.CopyTo(members, i); i += constructors.Count; 2677properties.CopyTo(members, i); i += properties.Count; 2678events.CopyTo(members, i); i += events.Count; 2679fields.CopyTo(members, i); i += fields.Count; 2680nestedTypes.CopyTo(members, i); i += nestedTypes.Count; 2791if (candidates.Count == 0) 2798if (candidates.Count == 1) 2804for (int j = 1; j < candidates.Count; j++) 2812return System.DefaultBinder.FindMostDerivedNewSlotMeth(candidates.ToArray(), candidates.Count) as MethodInfo; 2827if (candidates.Count == 0) 2830if (types.Length == 0 && candidates.Count == 1) 2855if (candidates.Count == 0) 2863if (candidates.Count == 1) 3039totalCount += methods.Count; 3048totalCount += constructors.Count; 3057totalCount += properties.Count; 3066totalCount += events.Count; 3075totalCount += fields.Count; 3084totalCount += nestedTypes.Count; 3091methods.CopyTo(compressMembers, i); i += methods.Count; 3092constructors.CopyTo(compressMembers, i); i += constructors.Count; 3093properties.CopyTo(compressMembers, i); i += properties.Count; 3094events.CopyTo(compressMembers, i); i += events.Count; 3095fields.CopyTo(compressMembers, i); i += fields.Count; 3096nestedTypes.CopyTo(compressMembers, i); i += nestedTypes.Count; 3843MethodBase[] cons = new MethodBase[candidates.Count]; 3856for (int i = 0; i < candidates.Count; i++)