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; 2799if (candidates.Count == 0) 2806if (candidates.Count == 1) 2812for (int j = 1; j < candidates.Count; j++) 2820return System.DefaultBinder.FindMostDerivedNewSlotMeth(candidates.ToArray(), candidates.Count) as MethodInfo; 2835if (candidates.Count == 0) 2838if (types.Length == 0 && candidates.Count == 1) 2863if (candidates.Count == 0) 2871if (candidates.Count == 1) 3047totalCount += methods.Count; 3056totalCount += constructors.Count; 3065totalCount += properties.Count; 3074totalCount += events.Count; 3083totalCount += fields.Count; 3092totalCount += nestedTypes.Count; 3099methods.CopyTo(compressMembers, i); i += methods.Count; 3100constructors.CopyTo(compressMembers, i); i += constructors.Count; 3101properties.CopyTo(compressMembers, i); i += properties.Count; 3102events.CopyTo(compressMembers, i); i += events.Count; 3103fields.CopyTo(compressMembers, i); i += fields.Count; 3104nestedTypes.CopyTo(compressMembers, i); i += nestedTypes.Count; 3870MethodBase[] cons = new MethodBase[candidates.Count]; 3883for (int i = 0; i < candidates.Count; i++)