/// <summary> /// Initializes a new instance of the <see cref="InputCaseConversion" /> class. /// </summary> /// <param name="input">String containing the text to convert (required).</param> /// <param name="alphacase">Case of conversion result (required).</param> public InputCaseConversion(string input = default(string), AlphacaseEnum alphacase = default(AlphacaseEnum)) { // to ensure "input" is required (not null) if (input == null) { throw new InvalidDataException("input is a required property for InputCaseConversion and cannot be null"); } else { this.Input = input; } // to ensure "alphacase" is required (not null) if (alphacase == null) { throw new InvalidDataException("alphacase is a required property for InputCaseConversion and cannot be null"); } else { this.Alphacase = alphacase; } }
/// <summary> /// Initializes a new instance of the <see cref="InputCaseConversion" /> class. /// </summary> /// <param name="input">String containing the text to convert (required).</param> /// <param name="alphacase">Case of conversion result (required).</param> public InputCaseConversion(string input = default(string), AlphacaseEnum alphacase = default(AlphacaseEnum)) { // to ensure "input" is required (not null) this.Input = input ?? throw new ArgumentNullException("input is a required property for InputCaseConversion and cannot be null"); this.Alphacase = alphacase; }