Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetConstructorImpl() [1/2]

override ConstructorInfo System.RuntimeType.GetConstructorImpl ( BindingFlags bindingAttr,
Binder binder,
CallingConventions callConvention,
Type[] types,
ParameterModifier[] modifiers )
inlineprotected

Definition at line 2415 of file RuntimeType.cs.

2416 {
2419 {
2420 return null;
2421 }
2422 if (types.Length == 0 && constructorCandidates.Count == 1)
2423 {
2425 ParameterInfo[] parametersNoCopy = constructorInfo.GetParametersNoCopy();
2426 if (parametersNoCopy == null || parametersNoCopy.Length == 0)
2427 {
2428 return constructorInfo;
2429 }
2430 }
2431 MethodBase[] match;
2432 if ((bindingAttr & BindingFlags.ExactBinding) != 0)
2433 {
2434 match = constructorCandidates.ToArray();
2436 }
2437 if (binder == null)
2438 {
2439 binder = Type.DefaultBinder;
2440 }
2442 match = constructorCandidates.ToArray();
2443 return binder2.SelectMethod(bindingAttr, match, types, modifiers) as ConstructorInfo;
2444 }
static MethodBase ExactBinding(MethodBase[] match, Type[] types, ParameterModifier[] modifiers)
ListBuilder< ConstructorInfo > GetConstructorCandidates(string name, BindingFlags bindingAttr, CallingConventions callConv, Type[] types, bool allowPrefixLookup)

References System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Type.DefaultBinder, System.DefaultBinder.ExactBinding(), System.RuntimeType.GetConstructorCandidates(), and System.match.