/// <summary> /// Creates a new instance of the <see cref="GenericStringConcatenator">GenericStringConcatenator</see> class using the given settings. /// </summary> /// <param name="seperator">Seperator.</param> /// <param name="nullValue">Null value.</param> /// <param name="concatenationOptions">Options.</param> public GenericStringConcatenator(string seperator, string nullValue, ConcatenationOptions concatenationOptions) { if (seperator == null) { throw new ArgumentNullException("seperator"); } mSeperator = seperator; mNullValue = nullValue; mConcatenationOptions = concatenationOptions; }
/// <summary> /// Creates a new instance of the <see cref="GenericStringConcatenator">GenericStringConcatenator</see> class using the given settings. /// </summary> /// <param name="seperator">Seperator.</param> /// <param name="nullValue">Null value.</param> /// <param name="concatenationOptions">Options.</param> public GenericStringConcatenator(string seperator, string nullValue, ConcatenationOptions concatenationOptions) { if (seperator == null) { throw new ArgumentNullException(nameof(seperator)); } _seperator = seperator; _nullValue = nullValue; _concatenationOptions = concatenationOptions; }
/// <summary> /// Creates a new instance of the <see cref="GenericStringConcatenator">GenericStringConcatenator</see> class.<br></br> /// Using the the given seperator.<br></br> /// Using <see cref="UniversalTypeConverter.DefaultNullStringValue">".null."</see> for null values.<br></br> /// Using the given options. /// </summary> /// <param name="seperator">Seperator.</param> /// <param name="concatenationOptions">Options.</param> public GenericStringConcatenator(string seperator, ConcatenationOptions concatenationOptions) : this(seperator, UniversalTypeConverter.DefaultNullStringValue, concatenationOptions) { }
/// <summary> /// Creates a new instance of the <see cref="GenericStringConcatenator">GenericStringConcatenator</see> class.<br></br> /// Using the the given seperator.<br></br> /// Using <see cref="UniversalTypeConverter.DefaultNullStringValue">".null."</see> for null values.<br></br> /// Using the given options. /// </summary> /// <param name="seperator">Seperator.</param> /// <param name="concatenationOptions">Options.</param> public GenericStringConcatenator(string seperator, ConcatenationOptions concatenationOptions) : this(seperator, ".null.", concatenationOptions) { }