45 references to Count
System.Private.CoreLib (45)
src\System\Reflection\RuntimeCustomAttributeData.cs (8)
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++)
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++)