private GetParametrizedConstructor ( |
||
objectType | ||
리턴 |
private ConstructorInfo GetParametrizedConstructor(Type objectType)
{
ConstructorInfo[] constructors = objectType.GetConstructors(BindingFlags.Public | BindingFlags.Instance);
if (constructors.Length == 1)
return constructors[0];
else
return null;
}