2 instantiations of RuntimeConstructorInfo
System.Private.CoreLib (2)
src\System\RuntimeType.CoreCLR.cs (2)
272new RuntimeConstructorInfo(method, declaringType, m_runtimeTypeCache, methodAttributes, bindingFlags) 802new RuntimeConstructorInfo(instantiatedHandle, ReflectedType, m_runtimeTypeCache, methodAttributes, bindingFlags);
46 references to RuntimeConstructorInfo
System.Private.CoreLib (46)
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)
12internal unsafe ConstructorInvoker(RuntimeConstructorInfo constructor) : this(constructor, constructor.Signature.Arguments)
src\System\Reflection\Emit\DynamicILGenerator.cs (4)
114RuntimeConstructorInfo rtConstructor = con as RuntimeConstructorInfo ?? 528private int GetTokenFor(RuntimeConstructorInfo rtMeth) 533private 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)
20internal unsafe MethodBaseInvoker(RuntimeConstructorInfo constructor) : this(constructor, constructor.Signature.Arguments)
src\System\Reflection\MethodInvoker.CoreCLR.cs (1)
27private 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 (6)
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(); 1172internal static bool IsDefined(RuntimeConstructorInfo ctor, RuntimeType caType) 1330internal static object[] GetCustomAttributes(RuntimeConstructorInfo ctor, RuntimeType caType) 1519RuntimeConstructorInfo.CheckCanCreateInstance(attributeType, isVarArg);
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 (14)
246if (candidate is RuntimeConstructorInfo candidateRCI && candidateRCI.MethodHandle.Value == method.Value) 270list = (T[])(object)new RuntimeConstructorInfo[1] 754private RuntimeConstructorInfo[] PopulateConstructors(Filter filter) 761ListBuilder<RuntimeConstructorInfo> list = default; 801RuntimeConstructorInfo runtimeConstructorInfo = 1461private MemberInfoCache<RuntimeConstructorInfo>? m_constructorInfoCache; 1722internal RuntimeConstructorInfo[] GetConstructorList(MemberListType listType, string? name) 2273RuntimeConstructorInfo constructor, BindingFlags bindingFlags, CallingConventions callConv, Type[]? argumentTypes) 2557RuntimeConstructorInfo[] cache = Cache.GetConstructorList(listType, name); 2562RuntimeConstructorInfo constructorInfo = cache[i]; 3199private static RuntimeConstructorInfo? GetConstructorWithSameMetadataDefinitionAs(RuntimeType runtimeType, MemberInfo constructor) 3201RuntimeConstructorInfo[] cache = runtimeType.Cache.GetConstructorList(MemberListType.CaseSensitive, constructor.Name); 3205RuntimeConstructorInfo candidate = cache[i]; 3932if (FilterApplyConstructorInfo((RuntimeConstructorInfo)candidates[i], bindingAttr, CallingConventions.Any, argsType))