public static GetConstructor ( this typeInfo, |
||
typeInfo | this | The |
types | The types of the constructor. | |
bindingFlags | BindingFlags | The binding flags. |
리턴 |
public static ConstructorInfo GetConstructor(this TypeInfo typeInfo, Type[] types, BindingFlags bindingFlags)
{
Argument.IsNotNull("typeInfo", typeInfo);
return (from x in GetConstructors(typeInfo, bindingFlags)
where CollectionHelper.IsEqualTo(types, from parameterInfo in x.GetParameters()
select parameterInfo.ParameterType)
select x).FirstOrDefault();
}