/// <summary> /// Creates a new CsvConfiguration. /// </summary> public Configuration() { maps = new ClassMapCollection(this); BuildRequiredQuoteChars = () => { return(delimiter.Length > 1 ? new[] { '\r', '\n' } : new[] { '\r', '\n', delimiter[0] }); }; quoteRequiredChars = BuildRequiredQuoteChars(); }
/// <summary> /// Initializes a new instance of the <see cref="Configuration"/> class /// using the given <see cref="System.Globalization.CultureInfo"/>. Since <see cref="Delimiter"/> /// uses <see cref="CultureInfo"/> for it's default, the given <see cref="System.Globalization.CultureInfo"/> /// will be used instead. /// </summary> /// <param name="cultureInfo">The culture information.</param> public Configuration(CultureInfo cultureInfo) { maps = new ClassMapCollection(this); this.cultureInfo = cultureInfo; delimiter = cultureInfo.TextInfo.ListSeparator; }
/// <summary> /// Creates a new CsvConfiguration. /// </summary> public Configuration() { maps = new ClassMapCollection(this); }