/// <summary> /// Initializes a new instance of the <see cref="InputStringComparison" /> class. /// </summary> /// <param name="input">Original string (required).</param> /// <param name="compare">Comparison string (required).</param> /// <param name="lower">Convert strings to lowercase before comparison (required).</param> /// <param name="trim">Trim strings before comparison (required).</param> public InputStringComparison(string input = default(string), string compare = default(string), LowerEnum lower = default(LowerEnum), TrimEnum trim = default(TrimEnum)) { // to ensure "input" is required (not null) this.Input = input ?? throw new ArgumentNullException("input is a required property for InputStringComparison and cannot be null"); // to ensure "compare" is required (not null) this.Compare = compare ?? throw new ArgumentNullException("compare is a required property for InputStringComparison and cannot be null"); this.Lower = lower; this.Trim = trim; }
/// <summary> /// Initializes a new instance of the <see cref="InputJoinStrings" /> class. /// </summary> /// <param name="input">Collection of strings to be joined (required).</param> /// <param name="separator">Separator character (required).</param> /// <param name="lower">Convert strings in collection to lowercase (required).</param> /// <param name="trim">Trim strings in collection (required).</param> public InputJoinStrings(List <string> input = default(List <string>), string separator = default(string), LowerEnum lower = default(LowerEnum), TrimEnum trim = default(TrimEnum)) { // to ensure "input" is required (not null) this.Input = input ?? throw new ArgumentNullException("input is a required property for InputJoinStrings and cannot be null"); // to ensure "separator" is required (not null) this.Separator = separator ?? throw new ArgumentNullException("separator is a required property for InputJoinStrings and cannot be null"); this.Lower = lower; this.Trim = trim; }
/// <summary> /// Initializes a new instance of the <see cref="InputStringComparison" /> class. /// </summary> /// <param name="input">Original string (required).</param> /// <param name="compare">Comparison string (required).</param> /// <param name="lower">Convert strings to lowercase before comparison (required).</param> /// <param name="trim">Trim strings before comparison (required).</param> public InputStringComparison(string input = default(string), string compare = default(string), LowerEnum lower = default(LowerEnum), TrimEnum trim = default(TrimEnum)) { // to ensure "input" is required (not null) if (input == null) { throw new InvalidDataException("input is a required property for InputStringComparison and cannot be null"); } else { this.Input = input; } // to ensure "compare" is required (not null) if (compare == null) { throw new InvalidDataException("compare is a required property for InputStringComparison and cannot be null"); } else { this.Compare = compare; } // to ensure "lower" is required (not null) if (lower == null) { throw new InvalidDataException("lower is a required property for InputStringComparison and cannot be null"); } else { this.Lower = lower; } // to ensure "trim" is required (not null) if (trim == null) { throw new InvalidDataException("trim is a required property for InputStringComparison and cannot be null"); } else { this.Trim = trim; } }
/// <summary> /// Initializes a new instance of the <see cref="InputJoinStrings" /> class. /// </summary> /// <param name="input">Collection of strings to be joined (required).</param> /// <param name="separator">Separator character (required).</param> /// <param name="lower">Convert strings in collection to lowercase (required).</param> /// <param name="trim">Trim strings in collection (required).</param> public InputJoinStrings(List <string> input = default(List <string>), string separator = default(string), LowerEnum lower = default(LowerEnum), TrimEnum trim = default(TrimEnum)) { // to ensure "input" is required (not null) if (input == null) { throw new InvalidDataException("input is a required property for InputJoinStrings and cannot be null"); } else { this.Input = input; } // to ensure "separator" is required (not null) if (separator == null) { throw new InvalidDataException("separator is a required property for InputJoinStrings and cannot be null"); } else { this.Separator = separator; } // to ensure "lower" is required (not null) if (lower == null) { throw new InvalidDataException("lower is a required property for InputJoinStrings and cannot be null"); } else { this.Lower = lower; } // to ensure "trim" is required (not null) if (trim == null) { throw new InvalidDataException("trim is a required property for InputJoinStrings and cannot be null"); } else { this.Trim = trim; } }