public GetConstructor ( BindingFlags bindingAttr, IKVM.Reflection.Binder binder, CallingConventions callingConvention, Type types, IKVM.Reflection.ParameterModifier modifiers ) : IKVM.Reflection.ConstructorInfo | ||
bindingAttr | BindingFlags | |
binder | IKVM.Reflection.Binder | |
callingConvention | CallingConventions | |
types | Type | |
modifiers | IKVM.Reflection.ParameterModifier | |
return | IKVM.Reflection.ConstructorInfo |
public ConstructorInfo GetConstructor(BindingFlags bindingAttr, Binder binder, CallingConventions callingConvention, Type[] types, ParameterModifier[] modifiers)
{
// FXBUG callConvention seems to be ignored
return GetConstructor(bindingAttr, binder, types, modifiers);
}
Type::GetConstructor ( BindingFlags bindingAttr, IKVM.Reflection.Binder binder, Type types, IKVM.Reflection.ParameterModifier modifiers ) : IKVM.Reflection.ConstructorInfo | |
Type::GetConstructor ( Type types ) : IKVM.Reflection.ConstructorInfo |
internal static ConstructorInfo GetConstructor(Type type, Type[] parameterTypes, bool nonPublic) { #if PORTABLE // pretty sure this will only ever return public, but... ConstructorInfo ctor = type.GetConstructor(parameterTypes); return (ctor != null && (nonPublic || ctor.IsPublic)) ? ctor : null; #else return type.GetConstructor( nonPublic ? BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic : BindingFlags.Instance | BindingFlags.Public, null, parameterTypes, null); #endif }