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)
71Debug.Assert(index < Count); 1229if (list.Count > 0) 1401for (int j = 0; j < list.Count; j++) 2718methods.Count + 2719constructors.Count + 2720properties.Count + 2721events.Count + 2722fields.Count + 2723nestedTypes.Count]; 2726methods.CopyTo(members, i); i += methods.Count; 2727constructors.CopyTo(members, i); i += constructors.Count; 2728properties.CopyTo(members, i); i += properties.Count; 2729events.CopyTo(members, i); i += events.Count; 2730fields.CopyTo(members, i); i += fields.Count; 2731nestedTypes.CopyTo(members, i); i += nestedTypes.Count; 2842if (candidates.Count == 0) 2849if (candidates.Count == 1) 2855for (int j = 1; j < candidates.Count; j++) 2863return System.DefaultBinder.FindMostDerivedNewSlotMeth(candidates.ToArray(), candidates.Count) as MethodInfo; 2878if (candidates.Count == 0) 2881if (types.Length == 0 && candidates.Count == 1) 2906if (candidates.Count == 0) 2914if (candidates.Count == 1) 3090totalCount += methods.Count; 3099totalCount += constructors.Count; 3108totalCount += properties.Count; 3117totalCount += events.Count; 3126totalCount += fields.Count; 3135totalCount += nestedTypes.Count; 3142methods.CopyTo(compressMembers, i); i += methods.Count; 3143constructors.CopyTo(compressMembers, i); i += constructors.Count; 3144properties.CopyTo(compressMembers, i); i += properties.Count; 3145events.CopyTo(compressMembers, i); i += events.Count; 3146fields.CopyTo(compressMembers, i); i += fields.Count; 3147nestedTypes.CopyTo(compressMembers, i); i += nestedTypes.Count; 3895MethodBase[] cons = new MethodBase[candidates.Count]; 3908for (int i = 0; i < candidates.Count; i++)