2 instantiations of RoArrayType
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\Modules\RoModule.Unifier.cs (2)
20private static readonly Func<RoType, RoArrayType> s_szArrayTypeFactory = (e) => new RoArrayType(e, multiDim: false, rank: 1); 34private static readonly Func<RoArrayType.Key, RoArrayType> s_mdArrayTypeFactory = (k) => new RoArrayType(k.ElementType, multiDim: true, rank: k.Rank);
14 references to RoArrayType
System.Reflection.MetadataLoadContext (14)
System\Reflection\TypeLoading\General\TypeFactories.cs (2)
11public static RoArrayType GetUniqueArrayType(this RoType elementType) => elementType.GetRoModule().GetUniqueArrayType(elementType); 12public static RoArrayType GetUniqueArrayType(this RoType elementType, int rank) => elementType.GetRoModule().GetUniqueArrayType(elementType, rank);
System\Reflection\TypeLoading\Modules\RoModule.Unifier.cs (12)
13internal RoArrayType GetUniqueArrayType(RoType elementType) 20private static readonly Func<RoType, RoArrayType> s_szArrayTypeFactory = (e) => new RoArrayType(e, multiDim: false, rank: 1); 21private readonly ConcurrentDictionary<RoType, RoArrayType> _szArrayDict = new ConcurrentDictionary<RoType, RoArrayType>(); 26internal RoArrayType GetUniqueArrayType(RoType elementType, int rank) 29RoArrayType.Key key = new(elementType, rank: rank); 34private static readonly Func<RoArrayType.Key, RoArrayType> s_mdArrayTypeFactory = (k) => new RoArrayType(k.ElementType, multiDim: true, rank: k.Rank); 35private readonly ConcurrentDictionary<RoArrayType.Key, RoArrayType> _mdArrayDict = new ConcurrentDictionary<RoArrayType.Key, RoArrayType>();