2 instantiations of RuntimeConstructorInfo
System.Private.CoreLib (2)
src\System\RuntimeType.CoreCLR.cs (2)
276new RuntimeConstructorInfo(method, declaringType, m_runtimeTypeCache, methodAttributes, bindingFlags) 795new RuntimeConstructorInfo(instantiatedHandle, ReflectedType, m_runtimeTypeCache, methodAttributes, bindingFlags);
44 references to RuntimeConstructorInfo
System.Private.CoreLib (44)
src\libraries\System.Private.CoreLib\src\System\Reflection\ConstructorInvoker.cs (3)
35private readonly RuntimeConstructorInfo _method; 53if (constructor is not RuntimeConstructorInfo runtimeConstructor) 61private ConstructorInvoker(RuntimeConstructorInfo constructor, RuntimeType[] argumentTypes)
src\libraries\System.Private.CoreLib\src\System\Reflection\InvokerEmitUtil.cs (3)
23bool emitNew = method is RuntimeConstructorInfo; 90bool emitNew = method is RuntimeConstructorInfo; 147bool emitNew = method is RuntimeConstructorInfo;
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInvoker.cs (3)
65if (method is RuntimeConstructorInfo rci) 292Debug.Assert(_method is RuntimeConstructorInfo); 293((RuntimeConstructorInfo)_method).ThrowNoInvokeException();
src\System\Reflection\ConstructorInvoker.CoreCLR.cs (1)
10internal unsafe ConstructorInvoker(RuntimeConstructorInfo constructor) : this(constructor, constructor.Signature.Arguments)
src\System\Reflection\Emit\DynamicILGenerator.cs (4)
113RuntimeConstructorInfo rtConstructor = con as RuntimeConstructorInfo ?? 505private int GetTokenFor(RuntimeConstructorInfo rtMeth) 510private int GetTokenFor(RuntimeConstructorInfo rtMeth, RuntimeType rtType)
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (4)
137private int GetMemberRefOfMethodInfo(int tr, RuntimeConstructorInfo method) 244else if (constructor is RuntimeConstructorInfo rtCon && !constructor.ReflectedType!.IsArray) 413Debug.Assert(methodBase is RuntimeMethodInfo || methodBase is RuntimeConstructorInfo); 457Debug.Assert(method is RuntimeMethodInfo || method is RuntimeConstructorInfo);
src\System\Reflection\MethodBaseInvoker.CoreCLR.cs (1)
19internal unsafe MethodBaseInvoker(RuntimeConstructorInfo constructor) : this(constructor, constructor.Signature.Arguments)
src\System\Reflection\MethodInvoker.CoreCLR.cs (1)
26private unsafe MethodInvoker(RuntimeConstructorInfo constructor) : this(constructor, constructor.Signature.Arguments)
src\System\Reflection\RuntimeConstructorInfo.CoreCLR.cs (2)
72o is RuntimeConstructorInfo m && m.m_handle == m_handle && 166public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) => HasSameMetadataDefinitionAsCore<RuntimeConstructorInfo>(other);
src\System\Reflection\RuntimeCustomAttributeData.cs (3)
48internal static IList<CustomAttributeData> GetCustomAttributesInternal(RuntimeConstructorInfo target) 254m_ctor = (RuntimeConstructorInfo)RuntimeType.GetMethodBase(m_scope, caCtorToken)!; 260m_ctor = (RuntimeConstructorInfo)m_scope.ResolveMethod(caCtorToken, attributeType.GenericTypeArguments, null)!.MethodHandle.GetMethodInfo();
src\System\Reflection\RuntimeParameterInfo.cs (4)
16Debug.Assert(method is RuntimeMethodInfo || method is RuntimeConstructorInfo); 23Debug.Assert(method is RuntimeMethodInfo || method is RuntimeConstructorInfo); 420RuntimeConstructorInfo? constructor = Member as RuntimeConstructorInfo;
src\System\RuntimeType.CoreCLR.cs (15)
250if (candidate is RuntimeConstructorInfo candidateRCI && candidateRCI.MethodHandle.Value == method.Value) 274list = (T[])(object)new RuntimeConstructorInfo[1] 754private RuntimeConstructorInfo[] PopulateConstructors(Filter filter) 758return Array.Empty<RuntimeConstructorInfo>(); 761ListBuilder<RuntimeConstructorInfo> list = default; 794RuntimeConstructorInfo runtimeConstructorInfo = 1448private MemberInfoCache<RuntimeConstructorInfo>? m_constructorInfoCache; 1726internal RuntimeConstructorInfo[] GetConstructorList(MemberListType listType, string? name) 2261RuntimeConstructorInfo constructor, BindingFlags bindingFlags, CallingConventions callConv, Type[]? argumentTypes) 2545RuntimeConstructorInfo[] cache = Cache.GetConstructorList(listType, name); 2550RuntimeConstructorInfo constructorInfo = cache[i]; 3171private static RuntimeConstructorInfo? GetConstructorWithSameMetadataDefinitionAs(RuntimeType runtimeType, MemberInfo constructor) 3173RuntimeConstructorInfo[] cache = runtimeType.Cache.GetConstructorList(MemberListType.CaseSensitive, constructor.Name); 3177RuntimeConstructorInfo candidate = cache[i]; 3901if (FilterApplyConstructorInfo((RuntimeConstructorInfo)candidates[i], bindingAttr, CallingConventions.Any, argsType))