Newtonsoft.Json.Serialization.DefaultContractResolver.GetParametrizedConstructor C# (CSharp) 메소드

GetParametrizedConstructor() 개인적인 메소드

private GetParametrizedConstructor ( Type objectType ) : ConstructorInfo
objectType System.Type
리턴 System.Reflection.ConstructorInfo
    private ConstructorInfo GetParametrizedConstructor(Type objectType)
    {
      ConstructorInfo[] constructors = objectType.GetConstructors(BindingFlags.Public | BindingFlags.Instance);

      if (constructors.Length == 1)
        return constructors[0];
      else
        return null;
    }