예제 #1
0
        /// <summary>
        ///     Adds the specified line.
        /// </summary>
        /// <param name="line">The line.</param>
        /// <returns>System.Int32.</returns>
        /// <inheritdoc />
        public int Add(string line)
        {
            var delimiter = PreferencesHelpers.DecideDelimiterFromLine(line);
            var result    = Add(line, delimiter);

            return(result);
        }
예제 #2
0
        /// <summary>
        ///     Adds the specified line.
        /// </summary>
        /// <param name="line">The line.</param>
        /// <param name="delimiter">The delimiter.</param>
        /// <returns>System.Int32.</returns>
        /// <inheritdoc />
        public int Add(string line, char delimiter)
        {
            var record = PreferencesHelpers.Parse(line, delimiter);

            var result = Add(record);

            return(result);
        }